@univerjssheets-data-validationindexclassesSheetsdatavalidationvalidatorservice

@univerjs/sheets-data-validation v0.5.4


Class: SheetsDataValidationValidatorService

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:23

Extends

Constructors

new SheetsDataValidationValidatorService()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:24

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_sheetDataValidationModelSheetDataValidationModel
_dataValidationCacheServiceDataValidationCacheService
_lifecycleServiceLifecycleService

Returns

SheetsDataValidationValidatorService

Overrides

Disposable.constructor

Properties

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

Methods

dispose()

dispose(): void

Defined in: core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getDataValidation()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:187

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

Nullable<IDataValidationRule>


getDataValidations()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:171

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

IDataValidationRule[]


validatorCell()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:96

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

Promise<DataValidationStatus>


validatorRanges()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:110

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

Promise<Promise<DataValidationStatus>[][]>


validatorWorkbook()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:158

Parameters

ParameterType
unitIdstring

Returns

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


validatorWorksheet()

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

Defined in: sheets-data-validation/src/services/dv-validator-service.ts:134

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

Promise<ObjectMatrix<Nullable<DataValidationStatus>>>