@univerjsdata-validationclassesDatavalidatorregistryservice

@univerjs/data-validation v0.5.0-beta.1Docs


Class: DataValidatorRegistryService

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<CellValue>

Parameters

ParameterType
idstring

Returns

undefined | BaseDataValidator<CellValue>

Defined in

data-validation/src/services/data-validator-registry.service.ts:88


getValidatorsByScope()

getValidatorsByScope(scope): undefined | BaseDataValidator<CellValue>[]

Parameters

ParameterType
scopestring

Returns

undefined | BaseDataValidator<CellValue>[]

Defined in

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


register()

register(validator): IDisposable

Parameters

ParameterType
validatorBaseDataValidator<any>

Returns

IDisposable

Defined in

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