@univerjs/sheets v0.1.17 • Docs
Class: RangeProtectionRefRangeService
Extends
Constructors
new RangeProtectionRefRangeService()
new RangeProtectionRefRangeService(
_selectionProtectionRuleModel,
_univerInstanceService,
_commandService,
_refRangeService,
_selectionProtectionRenderModel): RangeProtectionRefRangeService
Parameters
Parameter | Type |
---|---|
_selectionProtectionRuleModel | RangeProtectionRuleModel |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_refRangeService | RefRangeService |
_selectionProtectionRenderModel | RangeProtectionRenderModel |
Returns
RangeProtectionRefRangeService
Overrides
Defined in
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
disposableCollection | public | DisposableCollection | undefined | - | packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:61 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
protected disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
IDisposable
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
refRangeHandle()
refRangeHandle(
config,
unitId,
subUnitId): {
redos: redoMutations;
undos: undoMutations;
}
Parameters
Parameter | Type |
---|---|
config | EffectRefRangeParams |
unitId | string |
subUnitId | string |
Returns
{
redos: redoMutations;
undos: undoMutations;
}
Name | Type | Default value | Defined in |
---|---|---|---|
redos | { id : string ; params : ISetRangeProtectionMutationParams ; }[] | redoMutations | packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:343 (opens in a new tab) |
undos | { id : string ; params : ISetRangeProtectionMutationParams ; }[] | undoMutations | packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:343 (opens in a new tab) |