@univerjs/sheets-data-validation v0.5.0-beta.1 • 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
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:93 |
dirtyRanges$ | readonly | Observable <{ 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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
Returns
void
Defined in
sheets-data-validation/src/services/dv-cache.service.ts:85
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
core/src/shared/lifecycle.ts:96
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
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
core/src/shared/lifecycle.ts:100
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
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
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
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
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
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