@univerjs/data-validation v0.5.4
Class: DataValidatorRegistryService
Defined in: data-validation/src/services/data-validator-registry.service.ts:28
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
Defined in: data-validation/src/services/data-validator-registry.service.ts:88
Parameters
Parameter | Type |
---|---|
id | string |
Returns
undefined
| BaseDataValidator
getValidatorsByScope()
getValidatorsByScope(scope): undefined | BaseDataValidator[]
Defined in: data-validation/src/services/data-validator-registry.service.ts:92
Parameters
Parameter | Type |
---|---|
scope | string |
Returns
undefined
| BaseDataValidator
[]
register()
register(validator): IDisposable
Defined in: data-validation/src/services/data-validator-registry.service.ts:60
Parameters
Parameter | Type |
---|---|
validator | BaseDataValidator |