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


Class: DataValidationCacheService

Extends

Constructors

new DataValidationCacheService()

new DataValidationCacheService(_commandService): DataValidationCacheService

Parameters

ParameterType
_commandServiceICommandService

Returns

DataValidationCacheService

Overrides

Disposable.constructor

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:38

Properties

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

Methods

addRule()

addRule(
   unitId, 
   subUnitId, 
   rule): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:85


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


ensureCache()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

ObjectMatrix<Nullable<IDataValidationResCache>>

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:81


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

core/src/shared/lifecycle.ts:100


getValue()

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

Nullable<Nullable<IDataValidationResCache>>

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:152


markCellDirty()

markCellDirty(
   unitId, 
   subUnitId, 
   row, 
   col): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:136


markRangeDirty()

markRangeDirty(
   unitId, 
   subUnitId, 
   ranges): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
rangesIRange[]

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:125


removeRule()

removeRule(
   unitId, 
   subUnitId, 
   rule): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleISheetDataValidationRule

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:89


setValue()

setValue(
   unitId, 
   subUnitId, 
   row, 
   col, 
   value): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
valueIDataValidationResCache

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:157


updateRuleRanges()

updateRuleRanges(
   unitId, 
   subUnitId, 
   ruleId, 
   newRanges, 
   oldRanges): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
ruleIdstring
newRangesIRange[]
oldRangesIRange[]

Returns

void

Defined in

sheets-data-validation/src/services/dv-cache.service.ts:93