@univerjs/sheets-ui v0.5.0-beta.1Docs


Interface: IFormatPainterHook

Properties

PropertyTypeDefined in
idstringsubmodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:43
isDefaultHook?booleansubmodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:44
priority?numbersubmodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:45

Methods

onApply()?

optional onApply(
   unitId, 
   subUnitId, 
   range, 
   format): {
  redos: IMutationInfo<object>[];
  undos: IMutationInfo<object>[];
}

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange
formatISelectionFormatInfo

Returns

{
  redos: IMutationInfo<object>[];
  undos: IMutationInfo<object>[];
}
NameTypeDefined in
redosIMutationInfo<object>[]submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:53
undosIMutationInfo<object>[]submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:52

Defined in

submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:47


onBeforeApply()?

optional onBeforeApply(ctx): boolean

Parameters

ParameterType
ctxIFormatPainterBeforeApplyHookParams

Returns

boolean

Defined in

submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:55


onStatusChange()?

optional onStatusChange(status): void

Parameters

ParameterType
statusFormatPainterStatus

Returns

void

Defined in

submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:46