@univerjs/sheets-ui v0.5.4


Interface: ISheetAutoFillHook

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:32

Properties

PropertyTypeDefined in
bindUnit?stringsubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:36
disable?(location: IAutoFillLocation, direction: Direction, applyType: APPLY_TYPE) => booleansubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:37
idstringsubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:33
onBeforeSubmit?(location: IAutoFillLocation, direction: Direction, applyType: APPLY_TYPE, cellValue: IObjectMatrixPrimitiveType<Nullable<ICellData>>) => voidsubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:48
priority?numbersubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:34
type?AutoFillHookTypesubmodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:35

Methods

onAfterFillData()?

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

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:47

Parameters

ParameterType
locationIAutoFillLocation
directionDirection
applyTypeAPPLY_TYPE

Returns

boolean | void


onBeforeFillData()?

optional onBeforeFillData(location, direction): void | APPLY_TYPE

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:38

Parameters

ParameterType
locationIAutoFillLocation
directionDirection

Returns

void | APPLY_TYPE


onFillData()?

optional onFillData(
   location, 
   direction, 
   applyType): {
  redos: IMutationInfo[];
  undos: IMutationInfo[];
}

Defined in: submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:39

Parameters

ParameterType
locationIAutoFillLocation
directionDirection
applyTypeAPPLY_TYPE

Returns

{
  redos: IMutationInfo[];
  undos: IMutationInfo[];
}
NameTypeDefined in
redosIMutationInfo[]submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:45
undosIMutationInfo[]submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:44