@univerjs/sheets-data-validation v0.5.4
Class: DataValidationFormulaService
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:29
Extends
Constructors
new DataValidationFormulaService()
new DataValidationFormulaService(
_instanceService,
_registerOtherFormulaService,
_dataValidationCacheService,
_dataValidationModel,
_validatorRegistryService): DataValidationFormulaService
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:32
Parameters
Parameter | Type |
---|---|
_instanceService | IUniverInstanceService |
_registerOtherFormulaService | RegisterOtherFormulaService |
_dataValidationCacheService | DataValidationCacheService |
_dataValidationModel | DataValidationModel |
_validatorRegistryService | DataValidatorRegistryService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
Methods
addRule()
addRule(
unitId,
subUnitId,
rule): void
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:90
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
Returns
void
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getRuleFormulaInfo()
getRuleFormulaInfo(
unitId,
subUnitId,
ruleId):
| undefined
| [
| undefined
| IFormulaInfo,
| undefined
| IFormulaInfo]
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:156
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
| undefined
| [
| undefined
| IFormulaInfo
,
| undefined
| IFormulaInfo
]
getRuleFormulaResult()
getRuleFormulaResult(
unitId,
subUnitId,
ruleId): Promise<Nullable<[Nullable<IOtherFormulaResult>, Nullable<IOtherFormulaResult>]>>
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:123
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
Promise
<Nullable
<[Nullable
<IOtherFormulaResult
>, Nullable
<IOtherFormulaResult
>]>>
getRuleFormulaResultSync()
getRuleFormulaResultSync(
unitId,
subUnitId,
ruleId):
| undefined
| Nullable<IOtherFormulaResult>[]
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:138
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
| undefined
| Nullable
<IOtherFormulaResult
>[]
removeRule()
removeRule(
unitId,
subUnitId,
ruleId): void
Defined in: sheets-data-validation/src/services/dv-formula.service.ts:112
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
void