API Reference
@univerjs
@univerjs/sheets-ui
interfaces
Ieditorbridgeservice

@univerjs/sheets-ui v0.4.2Docs


Interface: IEditorBridgeService

Properties

PropertyTypeDefined in
currentEditCell$Observable<Nullable<IEditorBridgeServiceParam>>packages/sheets-ui/src/services/editor-bridge.service.ts:96 (opens in a new tab)
currentEditCellLayout$Observable<Nullable<ICellEditorLayout>>packages/sheets-ui/src/services/editor-bridge.service.ts:95 (opens in a new tab)
currentEditCellState$Observable<Nullable<ICellEditorState>>packages/sheets-ui/src/services/editor-bridge.service.ts:94 (opens in a new tab)
interceptorInterceptorManager<{ AFTER_CELL_EDIT: IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>; AFTER_CELL_EDIT_ASYNC: IInterceptor<Promise<Nullable<ICellDataForSheetInterceptor>>, ISheetLocationForEditor>; BEFORE_CELL_EDIT: IInterceptor<ICellDataForSheetInterceptor, ISheetLocationForEditor>; }>packages/sheets-ui/src/services/editor-bridge.service.ts:99 (opens in a new tab)
visible$Observable<IEditorBridgeServiceVisibleParam>packages/sheets-ui/src/services/editor-bridge.service.ts:98 (opens in a new tab)

Methods

beforeSetRangeValue()

beforeSetRangeValue(
   workbook, 
   worksheet, 
   row, 
   column, 
cellData): Promise<Nullable<ICellData>>

Parameters

ParameterType
workbookWorkbook
worksheetWorksheet
rownumber
columnnumber
cellDataICellData

Returns

Promise<Nullable<ICellData>>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:122 (opens in a new tab)


changeEditorDirty()

changeEditorDirty(dirtyStatus): void

Parameters

ParameterType
dirtyStatusboolean

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:114 (opens in a new tab)


changeVisible()

changeVisible(param): void

Parameters

ParameterType
paramIEditorBridgeServiceVisibleParam

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:113 (opens in a new tab)


disableForceKeepVisible()

disableForceKeepVisible(): void

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:118 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:104 (opens in a new tab)


enableForceKeepVisible()

enableForceKeepVisible(): void

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:117 (opens in a new tab)


getCurrentEditorId()

getCurrentEditorId(): Nullable<string>

Returns

Nullable<string>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:120 (opens in a new tab)


getEditCellLayout()

getEditCellLayout(): Readonly<Nullable<ICellEditorLayout>>

Returns

Readonly<Nullable<ICellEditorLayout>>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:109 (opens in a new tab)


getEditCellState()

getEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>

Returns

Readonly<Nullable<IEditorBridgeServiceParam>>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:108 (opens in a new tab)


getEditLocation()

getEditLocation(): Readonly<Nullable<ICellEditorState>>

Returns

Readonly<Nullable<ICellEditorState>>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:110 (opens in a new tab)


getEditorDirty()

getEditorDirty(): boolean

Returns

boolean

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:115 (opens in a new tab)


getLatestEditCellState()

getLatestEditCellState(): Readonly<Nullable<IEditorBridgeServiceParam>>

Returns

Readonly<Nullable<IEditorBridgeServiceParam>>

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:112 (opens in a new tab)


isForceKeepVisible()

isForceKeepVisible(): boolean

Returns

boolean

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:119 (opens in a new tab)


isVisible()

isVisible(): IEditorBridgeServiceVisibleParam

Returns

IEditorBridgeServiceVisibleParam

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:116 (opens in a new tab)


refreshEditCellPosition()

refreshEditCellPosition(resetSizeOnly?): void

Parameters

ParameterType
resetSizeOnly?boolean

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:106 (opens in a new tab)


refreshEditCellState()

refreshEditCellState(): void

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:105 (opens in a new tab)


setEditCell()

setEditCell(param): void

Parameters

ParameterType
paramICurrentEditCellParam

Returns

void

Defined in

packages/sheets-ui/src/services/editor-bridge.service.ts:107 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.