@univerjs/sheets-data-validation v0.5.4


Class: DataValidationCacheService

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

Extends

Constructors

new DataValidationCacheService()

new DataValidationCacheService(_commandService, _univerInstanceService): DataValidationCacheService

Defined in: sheets-data-validation/src/services/dv-cache.service.ts:29

Parameters

ParameterType
_commandServiceICommandService
_univerInstanceServiceIUniverInstanceService

Returns

DataValidationCacheService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedcore/src/shared/lifecycle.ts:96
dirtyRanges$readonlyObservable<{ ranges: IRange[]; subUnitId: string; unitId: string; }>undefined-sheets-data-validation/src/services/dv-cache.service.ts:27

Methods

addRule()

addRule(
   unitId, 
   subUnitId, 
   rule): void

Defined in: sheets-data-validation/src/services/dv-cache.service.ts:88

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void


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


ensureCache()

ensureCache(unitId, subUnitId): ObjectMatrix<Nullable<DataValidationStatus>>

Defined in: sheets-data-validation/src/services/dv-cache.service.ts:84

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

ObjectMatrix<Nullable<DataValidationStatus>>


ensureNotDisposed()

protected ensureNotDisposed(): void

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

Returns

void

Inherited from

Disposable.ensureNotDisposed


getValue()

getValue(
   unitId, 
   subUnitId, 
   row, 
col): Nullable<Nullable<DataValidationStatus>>

Defined in: sheets-data-validation/src/services/dv-cache.service.ts:117

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

Nullable<Nullable<DataValidationStatus>>


markRangeDirty()

markRangeDirty(
   unitId, 
   subUnitId, 
   ranges): void

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

void


removeRule()

removeRule(
   unitId, 
   subUnitId, 
   rule): void

Defined in: sheets-data-validation/src/services/dv-cache.service.ts:92

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void