API Reference
@univerjs
@univerjs/sheets
classes
Worksheetprotectionpointmodel

@univerjs/sheets v0.4.2Docs


Class: WorksheetProtectionPointModel

Constructors

new WorksheetProtectionPointModel()

new WorksheetProtectionPointModel(): WorksheetProtectionPointModel

Returns

WorksheetProtectionPointModel

Properties

PropertyTypeDefined in
pointChange$Observable<{ permissionId: string; subUnitId: string; unitId: string; }>packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:29 (opens in a new tab)

Methods

addRule()

addRule(rule): void

Parameters

ParameterType
ruleIWorksheetProtectionPointRule

Returns

void

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:31 (opens in a new tab)


deleteRule()

deleteRule(unitId, subUnitId): void

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

void

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:37 (opens in a new tab)


deleteUnitModel()

deleteUnitModel(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:83 (opens in a new tab)


fromObject()

fromObject(obj): void

Parameters

ParameterType
objIObjectPointModel

Returns

void

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:68 (opens in a new tab)


getRule()

getRule(unitId, subUnitId): undefined | IWorksheetProtectionPointRule

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

undefined | IWorksheetProtectionPointRule

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:45 (opens in a new tab)


getTargetByPermissionId()

getTargetByPermissionId(unitId, permissionId): undefined | null | string[]

Parameters

ParameterType
unitIdstring
permissionIdstring

Returns

undefined | null | string[]

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:96 (opens in a new tab)


toObject()

toObject(): IObjectPointModel

Returns

IObjectPointModel

Defined in

packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:49 (opens in a new tab)


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