API Reference
@univerjs
@univerjs/sheets-conditional-formatting
classes
Conditionalformattingformulaservice

@univerjs/sheets-conditional-formatting v0.4.2Docs


Class: ConditionalFormattingFormulaService

Extends

Constructors

new ConditionalFormattingFormulaService()

new ConditionalFormattingFormulaService(
   _commandService, 
   _injector, 
   _activeDirtyManagerService, 
   _conditionalFormattingViewModel, 
   _conditionalFormattingRuleModel): ConditionalFormattingFormulaService

Parameters

ParameterType
_commandServiceICommandService
_injectorInjector
_activeDirtyManagerServiceIActiveDirtyManagerService
_conditionalFormattingViewModelConditionalFormattingViewModel
_conditionalFormattingRuleModelConditionalFormattingRuleModel

Returns

ConditionalFormattingFormulaService

Overrides

Disposable.constructor

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:66 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)
formulaChange$publicObservable<{ cfId: string; formulaId: string; formulaText: string; subUnitId: string; unitId: string; }>undefined-sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:64 (opens in a new tab)

Methods

_createFormulaId()

_createFormulaId(unitId, subUnitId): string

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

string

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:286 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:84 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

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


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

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


getCache()

getCache(
   unitId, 
   subUnitId, 
cfId): undefined | ObjectMatrix<unknown>

Parameters

ParameterType
unitIdstring
subUnitIdstring
cfIdstring

Returns

undefined | ObjectMatrix<unknown>

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:224 (opens in a new tab)


getFormulaResult()

getFormulaResult(
   unitId, 
   subUnitId, 
   formulaText): {
  result: item.result;
  status: FormulaResultStatus.NOT_REGISTER;
 } | {
  result: item.result;
  status: FormulaResultStatus.SUCCESS;
}

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulaTextstring

Returns

{ result: item.result; status: FormulaResultStatus.NOT_REGISTER; } | { result: item.result; status: FormulaResultStatus.SUCCESS; }

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:266 (opens in a new tab)


getSubUnitFormulaMap()

getSubUnitFormulaMap(unitId, subUnitId): undefined | RefAlias<IFormulaItem, "formulaId" | "formulaText">

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

undefined | RefAlias<IFormulaItem, "formulaId" | "formulaText">

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:229 (opens in a new tab)


registerFormula()

registerFormula(
   unitId, 
   subUnitId, 
   cfId, 
   formulaText): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
cfIdstring
formulaTextstring

Returns

void

Defined in

sheets-conditional-formatting/src/services/conditional-formatting-formula.service.ts:233 (opens in a new tab)


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