API Reference
@univerjs
@univerjs/sheets-ui
interfaces
Isheetautofillhook

@univerjs/sheets-ui v0.4.2Docs


Interface: ISheetAutoFillHook

Properties

PropertyTypeDefined in
bindUnit?stringpackages/sheets-ui/src/services/auto-fill/type.ts:36 (opens in a new tab)
disable?(location: IAutoFillLocation, direction: Direction, applyType: APPLY_TYPE) => booleanpackages/sheets-ui/src/services/auto-fill/type.ts:37 (opens in a new tab)
idstringpackages/sheets-ui/src/services/auto-fill/type.ts:33 (opens in a new tab)
priority?numberpackages/sheets-ui/src/services/auto-fill/type.ts:34 (opens in a new tab)
type?AutoFillHookTypepackages/sheets-ui/src/services/auto-fill/type.ts:35 (opens in a new tab)

Methods

onAfterFillData()?

optional onAfterFillData(
   location, 
   direction, 
   applyType): boolean | void

Parameters

ParameterType
locationIAutoFillLocation
directionDirection
applyTypeAPPLY_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

ParameterType
locationIAutoFillLocation
directionDirection

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

ParameterType
locationIAutoFillLocation
directionDirection
applyTypeAPPLY_TYPE

Returns

{
  redos: IMutationInfo<object>[];
  undos: IMutationInfo<object>[];
}
NameTypeDefined in
redosIMutationInfo<object>[]packages/sheets-ui/src/services/auto-fill/type.ts:45 (opens in a new tab)
undosIMutationInfo<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)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.