API Reference
@univerjs
@univerjs/sheets-data-validation
classes
Sheetsdatavalidationvalidatorservice

@univerjs/sheets-data-validation v0.4.2Docs


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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100 (opens in a new tab)


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


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


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


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


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


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


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