@univerjssheets-data-validationindexclassesDatavalidationcustomformulaservice

@univerjs/sheets-data-validation v0.5.0-beta.1Docs


Class: DataValidationCustomFormulaService

Extends

Constructors

new DataValidationCustomFormulaService()

new DataValidationCustomFormulaService(
   _instanceSrv, 
   _registerOtherFormulaService, 
   _dataValidationModel, 
   _dataValidationCacheService): DataValidationCustomFormulaService

Parameters

ParameterType
_instanceSrvIUniverInstanceService
_registerOtherFormulaServiceRegisterOtherFormulaService
_dataValidationModelDataValidationModel
_dataValidationCacheServiceDataValidationCacheService

Returns

DataValidationCustomFormulaService

Overrides

Disposable.constructor

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:42

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93

Methods

addRule()

addRule(
   unitId, 
   subUnitId, 
   rule): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:158


deleteByRuleId()

deleteByRuleId(
   unitId, 
   subUnitId, 
   ruleId): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

void

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:109


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getCellFormula2Value()

getCellFormula2Value(
   unitId, 
   subUnitId, 
   ruleId, 
   row, 
column): Promise<Nullable<ICellData>>

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Promise<Nullable<ICellData>>

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:179


getCellFormula2ValueSync()

getCellFormula2ValueSync(
   unitId, 
   subUnitId, 
   ruleId, 
   row, 
column): Nullable<ICellData>

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Nullable<ICellData>

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:207


getCellFormulaValue()

getCellFormulaValue(
   unitId, 
   subUnitId, 
   ruleId, 
   row, 
column): Promise<Nullable<ICellData>>

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Promise<Nullable<ICellData>>

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:165


getCellFormulaValueSync()

getCellFormulaValueSync(
   unitId, 
   subUnitId, 
   ruleId, 
   row, 
column): Nullable<ICellData>

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Nullable<ICellData>

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:193


getRuleFormulaInfo()

getRuleFormulaInfo(
   unitId, 
   subUnitId, 
   ruleId): undefined | IFormulaData

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

undefined | IFormulaData

Defined in

sheets-data-validation/src/services/dv-custom-formula.service.ts:221