@univerjssheets-data-validationindexclassesSheetsdatavalidationvalidatorservice

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


Class: SheetsDataValidationValidatorService

Extends

Constructors

new SheetsDataValidationValidatorService()

new SheetsDataValidationValidatorService(
   _univerInstanceService, 
   _sheetDataValidationModel, 
   _dataValidationCacheService, 
   _lifecycleService): SheetsDataValidationValidatorService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_sheetDataValidationModelSheetDataValidationModel
_dataValidationCacheServiceDataValidationCacheService
_lifecycleServiceLifecycleService

Returns

SheetsDataValidationValidatorService

Overrides

Disposable.constructor

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:25

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getDataValidation()

getDataValidation(
   unitId, 
   subUnitId, 
ranges): Nullable<IDataValidationRule>

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

Nullable<IDataValidationRule>

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:159


getDataValidations()

getDataValidations(
   unitId, 
   subUnitId, 
   ranges): IDataValidationRule[]

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

IDataValidationRule[]

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:143


validatorCell()

validatorCell(
   unitId, 
   subUnitId, 
   row, 
col): Promise<DataValidationStatus>

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

Promise<DataValidationStatus>

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:78


validatorRanges()

validatorRanges(
   unitId, 
   subUnitId, 
ranges): Promise<Promise<DataValidationStatus>[][]>

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

Promise<Promise<DataValidationStatus>[][]>

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:105


validatorWorkbook()

validatorWorkbook(unitId): Promise<Record<string, ObjectMatrix<Nullable<IDataValidationResCache>>>>

Parameters

ParameterType
unitIdstring

Returns

Promise<Record<string, ObjectMatrix<Nullable<IDataValidationResCache>>>>

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:130


validatorWorksheet()

validatorWorksheet(unitId, subUnitId): Promise<ObjectMatrix<Nullable<IDataValidationResCache>>>

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

Promise<ObjectMatrix<Nullable<IDataValidationResCache>>>

Defined in

sheets-data-validation/src/services/dv-validator-service.ts:115