@univerjs/data-validation v0.5.0-beta.1 • 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 |
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
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
register()
register(validator): IDisposable
Parameters
Parameter | Type |
---|---|
validator | BaseDataValidator <any > |
Returns
Defined in
data-validation/src/services/data-validator-registry.service.ts:60