API Reference
@univerjs
@univerjs/sheets
classes
Rangeprotectionrefrangeservice

@univerjs/sheets v0.1.17Docs


Class: RangeProtectionRefRangeService

Extends

Constructors

new RangeProtectionRefRangeService()

new RangeProtectionRefRangeService(
   _selectionProtectionRuleModel, 
   _univerInstanceService, 
   _commandService, 
   _refRangeService, 
   _selectionProtectionRenderModel): RangeProtectionRefRangeService

Parameters

ParameterType
_selectionProtectionRuleModelRangeProtectionRuleModel
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_refRangeServiceRefRangeService
_selectionProtectionRenderModelRangeProtectionRenderModel

Returns

RangeProtectionRefRangeService

Overrides

Disposable.constructor

Defined in

packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:63 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
disposableCollectionpublicDisposableCollectionundefined-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

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

protected disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


refRangeHandle()

refRangeHandle(
   config, 
   unitId, 
   subUnitId): {
  redos: redoMutations;
  undos: undoMutations;
}

Parameters

ParameterType
configEffectRefRangeParams
unitIdstring
subUnitIdstring

Returns

{
  redos: redoMutations;
  undos: undoMutations;
}
NameTypeDefault valueDefined in
redos{ id: string; params: ISetRangeProtectionMutationParams; }[]redoMutationspackages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:343 (opens in a new tab)
undos{ id: string; params: ISetRangeProtectionMutationParams; }[]undoMutationspackages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:343 (opens in a new tab)

Defined in

packages/sheets/src/services/permission/range-permission/range-protection.ref-range.ts:136 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.