@univerjssheets-data-validationindexclassesDatavalidationcustomformulaservice

@univerjs/sheets-data-validation v0.5.4


Class: DataValidationCustomFormulaService

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:35

Extends

Constructors

new DataValidationCustomFormulaService()

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

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

Parameters

ParameterType
_instanceSrvIUniverInstanceService
_registerOtherFormulaServiceRegisterOtherFormulaService
_dataValidationModelDataValidationModel
_dataValidationCacheServiceDataValidationCacheService
_validatorRegistryServiceDataValidatorRegistryService

Returns

DataValidationCustomFormulaService

Overrides

Disposable.constructor

Properties

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

Methods

addRule()

addRule(
   unitId, 
   subUnitId, 
   rule): void

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:159

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void


deleteByRuleId()

deleteByRuleId(
   unitId, 
   subUnitId, 
   ruleId): void

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:110

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

void


dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getCellFormula2Value()

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

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:180

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Promise<Nullable<ICellData>>


getCellFormula2ValueSync()

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

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:208

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Nullable<ICellData>


getCellFormulaValue()

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

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:166

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Promise<Nullable<ICellData>>


getCellFormulaValueSync()

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

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:194

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
rownumber
columnnumber

Returns

Nullable<ICellData>


getRuleFormulaInfo()

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

Defined in: sheets-data-validation/src/services/dv-custom-formula.service.ts:222

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring

Returns

undefined | IFormulaData