@univerjs/sheets-ui v0.4.2 • Docs
Interface: ISheetAutoFillHook
Properties
Property | Type | Defined in |
---|---|---|
bindUnit? | string | packages/sheets-ui/src/services/auto-fill/type.ts:36 (opens in a new tab) |
disable? | (location : IAutoFillLocation , direction : Direction , applyType : APPLY_TYPE ) => boolean | packages/sheets-ui/src/services/auto-fill/type.ts:37 (opens in a new tab) |
id | string | packages/sheets-ui/src/services/auto-fill/type.ts:33 (opens in a new tab) |
priority? | number | packages/sheets-ui/src/services/auto-fill/type.ts:34 (opens in a new tab) |
type? | AutoFillHookType | packages/sheets-ui/src/services/auto-fill/type.ts:35 (opens in a new tab) |
Methods
onAfterFillData()?
optional onAfterFillData(
location,
direction,
applyType): boolean | void
Parameters
Parameter | Type |
---|---|
location | IAutoFillLocation |
direction | Direction |
applyType | APPLY_TYPE |
Returns
boolean
| void
Defined in
packages/sheets-ui/src/services/auto-fill/type.ts:47 (opens in a new tab)
onBeforeFillData()?
optional onBeforeFillData(location, direction): void | APPLY_TYPE
Parameters
Parameter | Type |
---|---|
location | IAutoFillLocation |
direction | Direction |
Returns
void
| APPLY_TYPE
Defined in
packages/sheets-ui/src/services/auto-fill/type.ts:38 (opens in a new tab)
onFillData()?
optional onFillData(
location,
direction,
applyType): {
redos: IMutationInfo<object>[];
undos: IMutationInfo<object>[];
}
Parameters
Parameter | Type |
---|---|
location | IAutoFillLocation |
direction | Direction |
applyType | APPLY_TYPE |
Returns
{
redos: IMutationInfo<object>[];
undos: IMutationInfo<object>[];
}
Name | Type | Defined in |
---|---|---|
redos | IMutationInfo <object >[] | packages/sheets-ui/src/services/auto-fill/type.ts:45 (opens in a new tab) |
undos | IMutationInfo <object >[] | packages/sheets-ui/src/services/auto-fill/type.ts:44 (opens in a new tab) |
Defined in
packages/sheets-ui/src/services/auto-fill/type.ts:39 (opens in a new tab)