@univerjsdata-validationclassesDatavalidatorregistryservice

@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

DataValidatorRegistryService

Properties

PropertyTypeDefined 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

ParameterType
idstring

Returns

undefined | BaseDataValidator


getValidatorsByScope()

getValidatorsByScope(scope): undefined | BaseDataValidator[]

Defined in: data-validation/src/services/data-validator-registry.service.ts:92

Parameters

ParameterType
scopestring

Returns

undefined | BaseDataValidator[]


register()

register(validator): IDisposable

Defined in: data-validation/src/services/data-validator-registry.service.ts:60

Parameters

ParameterType
validatorBaseDataValidator

Returns

IDisposable