@univerjs/sheets-data-validation v0.4.2 • Docs
Class: DataValidationCacheService
Extends
Constructors
new DataValidationCacheService()
new DataValidationCacheService(_commandService): DataValidationCacheService
Parameters
Parameter | Type |
---|---|
_commandService | ICommandService |
Returns
Overrides
Defined in
sheets-data-validation/src/services/dv-cache.service.ts:38 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 (opens in a new tab) |
dirtyRanges$ | readonly | Observable <{ 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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
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
Defined in
core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureCache()
ensureCache(unitId, subUnitId): ObjectMatrix<Nullable<IDataValidationResCache>>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
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
Defined in
core/src/shared/lifecycle.ts:100 (opens in a new tab)
getValue()
getValue(
unitId,
subUnitId,
row,
col): Nullable<Nullable<IDataValidationResCache>>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
value | IDataValidationResCache |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ruleId | string |
newRanges | IRange [] |
oldRanges | IRange [] |
Returns
void
Defined in
sheets-data-validation/src/services/dv-cache.service.ts:93 (opens in a new tab)