@univerjs/sheets v0.4.2 • Docs
Class: RangeProtectionRefRangeService
Extends
Constructors
new RangeProtectionRefRangeService()
new RangeProtectionRefRangeService(
_selectionProtectionRuleModel,
_univerInstanceService,
_commandService,
_refRangeService,
_selectionProtectionRenderModel,
_rangeProtectionCache,
_sheetInterceptorService,
_rangeProtectionRuleModel): RangeProtectionRefRangeService
Parameters
Parameter | Type |
---|---|
_selectionProtectionRuleModel | RangeProtectionRuleModel |
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_refRangeService | RefRangeService |
_selectionProtectionRenderModel | RangeProtectionRenderModel |
_rangeProtectionCache | RangeProtectionCache |
_sheetInterceptorService | SheetInterceptorService |
_rangeProtectionRuleModel | RangeProtectionRuleModel |
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:63 (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()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
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;
} | {
redos: redoMutations;
undos: undoMutations;
}
Parameters
Parameter | Type |
---|---|
config | EffectRefRangeParams |
unitId | string |
subUnitId | string |
Returns
{
redos
: redoMutations
;
undos
: undoMutations
;
} | {
redos
: redoMutations
;
undos
: undoMutations
;
}