@univerjs/sheets-ui v0.5.0-beta.1 • Docs
Interface: IFormatPainterHook
Properties
Property | Type | Defined in |
---|---|---|
id | string | submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:43 |
isDefaultHook? | boolean | submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:44 |
priority? | number | submodules/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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
range | IRange |
format | ISelectionFormatInfo |
Returns
{
redos: IMutationInfo<object>[];
undos: IMutationInfo<object>[];
}
Name | Type | Defined in |
---|---|---|
redos | IMutationInfo <object >[] | submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:53 |
undos | IMutationInfo <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
Parameter | Type |
---|---|
ctx | IFormatPainterBeforeApplyHookParams |
Returns
boolean
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:55
onStatusChange()?
optional onStatusChange(status): void
Parameters
Parameter | Type |
---|---|
status | FormatPainterStatus |
Returns
void
Defined in
submodules/univer/packages/sheets-ui/src/services/format-painter/format-painter.service.ts:46