@univerjs/sheets-ui v0.4.2 • Docs
Interface: IFormatPainterHook
Properties
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>[];
}
Defined in
packages/sheets-ui/src/services/format-painter/format-painter.service.ts:47 (opens in a new tab)
onBeforeApply()?
optional onBeforeApply(ctx): boolean
Parameters
Parameter | Type |
---|---|
ctx | IFormatPainterBeforeApplyHookParams |
Returns
boolean
Defined in
packages/sheets-ui/src/services/format-painter/format-painter.service.ts:55 (opens in a new tab)
onStatusChange()?
optional onStatusChange(status): void
Parameters
Parameter | Type |
---|---|
status | FormatPainterStatus |
Returns
void
Defined in
packages/sheets-ui/src/services/format-painter/format-painter.service.ts:46 (opens in a new tab)