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

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


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

Properties

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

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


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)


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 (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)


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


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


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


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


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


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


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