@univerjs/data-validation v0.4.2 • Docs
Class: DataValidatorRegistryService
Register data validator
Constructors
new DataValidatorRegistryService()
new DataValidatorRegistryService(): DataValidatorRegistryService
Returns
Properties
Property | Type | Defined in |
---|---|---|
validatorsChange$ | Observable <void > | data-validation/src/services/data-validator-registry.service.ts:34 (opens in a new tab) |
Methods
getValidatorItem()
getValidatorItem(id): undefined | BaseDataValidator<CellValue>
Parameters
Parameter | Type |
---|---|
id | string |
Returns
undefined
| BaseDataValidator
<CellValue
>
Defined in
data-validation/src/services/data-validator-registry.service.ts:88 (opens in a new tab)
getValidatorsByScope()
getValidatorsByScope(scope): undefined | BaseDataValidator<CellValue>[]
Parameters
Parameter | Type |
---|---|
scope | string |
Returns
undefined
| BaseDataValidator
<CellValue
>[]
Defined in
data-validation/src/services/data-validator-registry.service.ts:92 (opens in a new tab)
register()
register(validator): IDisposable
Parameters
Parameter | Type |
---|---|
validator | BaseDataValidator <any > |
Returns
Defined in
data-validation/src/services/data-validator-registry.service.ts:60 (opens in a new tab)