API Reference
@univerjs
@univerjs/sheets-data-validation
classes
Datavalidationformulaservice

@univerjs/sheets-data-validation v0.4.2Docs


Class: DataValidationFormulaService

Extends

Constructors

new DataValidationFormulaService()

new DataValidationFormulaService(
   _instanceService, 
   _registerOtherFormulaService, 
   _dataValidationCacheService, 
   _dataValidationModel): DataValidationFormulaService

Parameters

ParameterType
_instanceServiceIUniverInstanceService
_registerOtherFormulaServiceRegisterOtherFormulaService
_dataValidationCacheServiceDataValidationCacheService
_dataValidationModelDataValidationModel

Returns

DataValidationFormulaService

Overrides

Disposable.constructor

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:31 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

addRule()

addRule(
   unitId, 
   subUnitId, 
   ruleId, 
   formula1, 
   formula2): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
formula1undefined | string
formula2undefined | string

Returns

void

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:83 (opens in a new tab)


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106 (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)


getRuleFormulaInfo()

getRuleFormulaInfo(
   unitId, 
   subUnitId, 
   ruleId): undefined | [undefined | IFormulaInfo, undefined | IFormulaInfo]

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

undefined | [undefined | IFormulaInfo, undefined | IFormulaInfo]

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:183 (opens in a new tab)


getRuleFormulaResult()

getRuleFormulaResult(
   unitId, 
   subUnitId, 
ruleId): Promise<Nullable<[Nullable<IOtherFormulaResult>, Nullable<IOtherFormulaResult>]>>

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

Promise<Nullable<[Nullable<IOtherFormulaResult>, Nullable<IOtherFormulaResult>]>>

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:150 (opens in a new tab)


getRuleFormulaResultSync()

getRuleFormulaResultSync(
   unitId, 
   subUnitId, 
   ruleId): undefined | Nullable<IOtherFormulaResult>[]

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

undefined | Nullable<IOtherFormulaResult>[]

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:165 (opens in a new tab)


removeRule()

removeRule(
   unitId, 
   subUnitId, 
   ruleId): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

void

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:103 (opens in a new tab)


updateRuleFormulaText()

updateRuleFormulaText(
   unitId, 
   subUnitId, 
   ruleId, 
   formula1, 
   formula2): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
formula1undefined | string
formula2undefined | string

Returns

void

Defined in

sheets-data-validation/src/services/dv-formula.service.ts:114 (opens in a new tab)


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