API Reference
@univerjs
@univerjs/data-validation
classes
Datavalidatorregistryservice

@univerjs/data-validation v0.4.2Docs


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 (opens in a new tab)

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 (opens in a new tab)


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 (opens in a new tab)


register()

register(validator): IDisposable

Parameters

ParameterType
validatorBaseDataValidator<any>

Returns

IDisposable

Defined in

data-validation/src/services/data-validator-registry.service.ts:60 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.