@univerjs/sheets-ui v0.5.4


Interface: IFormatPainterHook

Defined in: submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:42

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[];
  undos: IMutationInfo[];
}

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangeIRange
formatISelectionFormatInfo

Returns

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

onBeforeApply()?

optional onBeforeApply(ctx): boolean

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

Parameters

ParameterType
ctxIFormatPainterBeforeApplyHookParams

Returns

boolean


onStatusChange()?

optional onStatusChange(status): void

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

Parameters

ParameterType
statusFormatPainterStatus

Returns

void