@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
Parameter | Type |
---|---|
_commandService | ICommandService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | core/src/shared/lifecycle.ts:96 |
dirtyRanges$ | readonly | Observable <{ 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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
Returns
void
dispose()
dispose(): void
Defined in: core/src/shared/lifecycle.ts:109
Returns
void
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureCache()
ensureCache(unitId, subUnitId): ObjectMatrix<Nullable<DataValidationStatus>>
Defined in: sheets-data-validation/src/services/dv-cache.service.ts:84
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
ObjectMatrix
<Nullable
<DataValidationStatus
>>
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getValue()
getValue(
unitId,
subUnitId,
row,
col): Nullable<Nullable<DataValidationStatus>>
Defined in: sheets-data-validation/src/services/dv-cache.service.ts:117
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
Nullable
<Nullable
<DataValidationStatus
>>
markRangeDirty()
markRangeDirty(
unitId,
subUnitId,
ranges): void
Defined in: sheets-data-validation/src/services/dv-cache.service.ts:96
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
ranges | IRange [] |
Returns
void
removeRule()
removeRule(
unitId,
subUnitId,
rule): void
Defined in: sheets-data-validation/src/services/dv-cache.service.ts:92
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | ISheetDataValidationRule |
Returns
void