API Reference
@univerjs
@univerjs/sheets-formula
classes
Registerotherformulaservice

@univerjs/sheets-formula v0.1.17Docs


Class: RegisterOtherFormulaService

Extends

Constructors

new RegisterOtherFormulaService()

new RegisterOtherFormulaService(_commandService, _activeDirtyManagerService): RegisterOtherFormulaService

Parameters

ParameterType
_commandServiceICommandService
_activeDirtyManagerServiceIActiveDirtyManagerService

Returns

RegisterOtherFormulaService

Overrides

Disposable.constructor

Defined in

packages/sheets-formula/src/services/register-other-formula.service.ts:35 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
formulaChange$publicObservable<{ formulaId: string; formulaText: string; subUnitId: string; unitId: string; }>undefined-packages/sheets-formula/src/services/register-other-formula.service.ts:30 (opens in a new tab)
formulaResult$publicObservable<Record<string, Record<string, IOtherFormulaResult[]>>>undefined-packages/sheets-formula/src/services/register-other-formula.service.ts:33 (opens in a new tab)

Methods

deleteFormula()

deleteFormula(
   unitId, 
   subUnitId, 
   formulaIdList): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulaIdListstring[]

Returns

void

Defined in

packages/sheets-formula/src/services/register-other-formula.service.ts:159 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

protected disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getFormulaValue()

getFormulaValue(
   unitId, 
   subUnitId, 
formulaId): Promise<Nullable<IOtherFormulaResult>>

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulaIdstring

Returns

Promise<Nullable<IOtherFormulaResult>>

Defined in

packages/sheets-formula/src/services/register-other-formula.service.ts:170 (opens in a new tab)


getFormulaValueSync()

getFormulaValueSync(
   unitId, 
   subUnitId, 
formulaId): Nullable<IOtherFormulaResult>

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulaIdstring

Returns

Nullable<IOtherFormulaResult>

Defined in

packages/sheets-formula/src/services/register-other-formula.service.ts:188 (opens in a new tab)


registerFormula()

registerFormula(
   unitId, 
   subUnitId, 
   formulaText, 
   extra?): string

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulaTextstring
extra?Record<string, any>

Returns

string

Defined in

packages/sheets-formula/src/services/register-other-formula.service.ts:139 (opens in a new tab)


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