@univerjs/sheets-ui v0.5.0-beta.1Docs


Interface: ISheetAutoFillHook

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
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

Parameters

ParameterType
locationIAutoFillLocation
directionDirection
applyTypeAPPLY_TYPE

Returns

boolean | void

Defined in

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


onBeforeFillData()?

optional onBeforeFillData(location, direction): void | APPLY_TYPE

Parameters

ParameterType
locationIAutoFillLocation
directionDirection

Returns

void | APPLY_TYPE

Defined in

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


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>[]submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:45
undosIMutationInfo<object>[]submodules/univer/packages/sheets-ui/src/services/auto-fill/type.ts:44

Defined in

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