@univerjssheets-uifacadeinterfacesIfworkbooksheetsuimixin

@univerjs/sheets-ui v0.5.1Docs


Interface: IFWorkbookSheetsUIMixin

Methods

endEditing()

endEditing(save?): Promise<boolean>

End the editing process

Parameters

ParameterTypeDescription
save?booleanWhether to save the changes

Returns

Promise<boolean>

A promise that resolves to a boolean value

Async

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:75


onCellClick()

onCellClick(callback): IDisposable

Subscribe to cell click events

Parameters

ParameterTypeDescription
callback(cell) => voidThe callback function to be called when a cell is clicked

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:53


onCellHover()

onCellHover(callback): IDisposable

Subscribe cell hover events

Parameters

ParameterTypeDescription
callback(cell) => voidThe callback function to be called when a cell is hovered

Returns

IDisposable

A disposable object that can be used to unsubscribe from the event

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:61


openDialog()

openDialog(dialog): IDisposable

Open a dialog.

Parameters

ParameterTypeDescription
dialogIDialogPartMethodOptionsthe dialog options

Returns

IDisposable

the disposable object

Deprecated

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:45


openSiderbar()

openSiderbar(params): IDisposable

Open a sidebar.

Parameters

ParameterTypeDescription
paramsISidebarMethodOptionsthe sidebar options

Returns

IDisposable

the disposable object

Deprecated

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:35


startEditing()

startEditing(): boolean

Start the editing process

Returns

boolean

A boolean value

Defined in

submodules/univer/packages/sheets-ui/src/facade/f-workbook.ts:67