@univerjs/sheets-ui v0.5.4


Interface: IAutoFillService

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

Properties

PropertyTypeDefined in
applyTypeAPPLY_TYPEsubmodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:57
applyType$Observable<APPLY_TYPE>submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:56
autoFillLocationNullable<IAutoFillLocation>submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:73
autoFillLocation$Observable<Nullable<IAutoFillLocation>>submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:72
directionDirectionsubmodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:59
menuIApplyMenuItem[]submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:62
menu$Observable<IApplyMenuItem[]>submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:61
setDisableApplyType(type: APPLY_TYPE, disable: boolean) => voidsubmodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:67
setShowMenu(show: boolean) => voidsubmodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:65
showMenu$Observable<boolean>submodules/univer/packages/sheets-ui/src/services/auto-fill/auto-fill.service.ts:64

Methods

addHook()

addHook(hook): IDisposable

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

Parameters

ParameterType
hookISheetAutoFillHook

Returns

IDisposable


fillData()

fillData(applyType): boolean

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

Parameters

ParameterType
applyTypeAPPLY_TYPE

Returns

boolean


getActiveHooks()

getActiveHooks(): ISheetAutoFillHook[]

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

Returns

ISheetAutoFillHook[]


getAllHooks()

getAllHooks(): ISheetAutoFillHook[]

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

Returns

ISheetAutoFillHook[]


getRules()

getRules(): IAutoFillRule[]

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

Returns

IAutoFillRule[]


isFillingStyle()

isFillingStyle(): boolean

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

Returns

boolean


registerRule()

registerRule(rule): void

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

Parameters

ParameterType
ruleIAutoFillRule

Returns

void


setFillingStyle()

setFillingStyle(isFillingStyle): void

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

Parameters

ParameterType
isFillingStyleboolean

Returns

void


triggerAutoFill()

triggerAutoFill(
   unitId, 
   subUnitId, 
   source, 
target): Promise<boolean>

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
sourceIRange
targetIRange

Returns

Promise<boolean>