@univerjs/sheets-data-validation v0.5.0-beta.1 • Docs
Class: DataValidationFormulaService
Extends
Constructors
new DataValidationFormulaService()
new DataValidationFormulaService(
_instanceService,
_registerOtherFormulaService,
_dataValidationCacheService,
_dataValidationModel): DataValidationFormulaService
Parameters
Parameter | Type |
---|---|
_instanceService | IUniverInstanceService |
_registerOtherFormulaService | RegisterOtherFormulaService |
_dataValidationCacheService | DataValidationCacheService |
_dataValidationModel | DataValidationModel |
Returns
Overrides
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:32
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
Methods
addRule()
addRule(
unitId,
subUnitId,
rule): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
Returns
void
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:89
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
getRuleFormulaInfo()
getRuleFormulaInfo(
unitId,
subUnitId,
ruleId): undefined | [undefined | IFormulaInfo, undefined | IFormulaInfo]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
undefined
| [undefined
| IFormulaInfo
, undefined
| IFormulaInfo
]
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:155
getRuleFormulaResult()
getRuleFormulaResult(
unitId,
subUnitId,
ruleId): Promise<Nullable<[Nullable<IOtherFormulaResult>, Nullable<IOtherFormulaResult>]>>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
Promise
<Nullable
<[Nullable
<IOtherFormulaResult
>, Nullable
<IOtherFormulaResult
>]>>
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:122
getRuleFormulaResultSync()
getRuleFormulaResultSync(
unitId,
subUnitId,
ruleId): undefined | Nullable<IOtherFormulaResult>[]
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
undefined
| Nullable
<IOtherFormulaResult
>[]
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:137
removeRule()
removeRule(
unitId,
subUnitId,
ruleId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
Returns
void
Defined in
sheets-data-validation/src/services/dv-formula.service.ts:111