@univerjs/sheets v0.5.0-beta.1 • Docs
Class: RangeProtectionCache
Extends
Constructors
new RangeProtectionCache()
new RangeProtectionCache(
_ruleModel,
_permissionService,
_univerInstanceService): RangeProtectionCache
Parameters
Parameter | Type |
---|---|
_ruleModel | RangeProtectionRuleModel |
_permissionService | IPermissionService |
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:36
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
Methods
deleteUnit()
deleteUnit(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:375
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getCellInfo()
getCellInfo(
unitId,
subUnitId,
row,
col): undefined | Partial<Record<UnitAction, boolean>> & {
ranges: IRange[];
ruleId: string;
} | {
0: view;
1: edit;
2: manageProtection;
42: deleteProtection;
ranges: rule.ranges;
ruleId: string;
}
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
undefined
| Partial
<Record
<UnitAction
, boolean
>> & {
ranges
: IRange
[];
ruleId
: string
;
} | {
0
: view
;
1
: edit
;
2
: manageProtection
;
42
: deleteProtection
;
ranges
: rule.ranges
;
ruleId
: string
;
}
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:351
getColPermissionInfo()
getColPermissionInfo(
unitId,
subUnitId,
col,
types): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
col | number |
types | UnitAction [] |
Returns
boolean
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:268
getRowPermissionInfo()
getRowPermissionInfo(
unitId,
subUnitId,
row,
types): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
types | UnitAction [] |
Returns
boolean
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:249
reBuildCache()
reBuildCache(unitId, subUnitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void
Defined in
submodules/univer/packages/sheets/src/model/range-protection.cache.ts:205