@univerjs/sheets-ui v0.5.1Docs


Interface: IFUniverSheetsUIMixin

Methods

customizeColumnHeader()

customizeColumnHeader(cfg): void

Customize the column header of the spreadsheet.

Parameters

ParameterTypeDescription
cfgIColumnsHeaderCfgParamThe configuration of the column header.

Returns

void

Example

customizeColumnHeader({ headerStyle: { backgroundColor: 'pink', fontSize: 9 }, columnsCfg: ['MokaII', undefined, null, { text: 'Size', textAlign: 'left' }] });

Defined in

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


customizeRowHeader()

customizeRowHeader(cfg): void

Customize the row header of the spreadsheet.

Parameters

ParameterTypeDescription
cfgIRowsHeaderCfgParamThe configuration of the row header.

Returns

void

Example

customizeRowHeader({ headerStyle: { backgroundColor: 'pink', fontSize: 9 }, rowsCfg: ['MokaII', undefined, null, { text: 'Size', textAlign: 'left' }] });

Defined in

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


getSheetHooks()

getSheetHooks(): FSheetHooks

Get sheet hooks.

Returns

FSheetHooks

FSheetHooks instance

Defined in

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


registerSheetColumnHeaderExtension()

registerSheetColumnHeaderExtension(unitId, ...extensions): IDisposable

Register sheet column header render extensions.

Parameters

ParameterTypeDescription
unitIdstringThe unit id of the spreadsheet.
extensionsSheetExtension[]The extensions to register.

Returns

IDisposable

The disposable instance.

Defined in

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


registerSheetMainExtension()

registerSheetMainExtension(unitId, ...extensions): IDisposable

Register sheet main render extensions.

Parameters

ParameterTypeDescription
unitIdstringThe unit id of the spreadsheet.
extensionsSheetExtension[]The extensions to register.

Returns

IDisposable

The disposable instance.

Defined in

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


registerSheetRowHeaderExtension()

registerSheetRowHeaderExtension(unitId, ...extensions): IDisposable

Register sheet row header render extensions.

Parameters

ParameterTypeDescription
unitIdstringThe unit id of the spreadsheet.
extensionsSheetExtension[]The extensions to register.

Returns

IDisposable

The disposable instance.

Defined in

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