@univerjs/sheets v0.5.0-beta.1 • Docs
Class: WorksheetProtectionPointModel
Constructors
new WorksheetProtectionPointModel()
new WorksheetProtectionPointModel(): WorksheetProtectionPointModel
Returns
Properties
Property | Type | Defined in |
---|---|---|
pointChange$ | Observable <{ permissionId : string ; subUnitId : string ; unitId : string ; }> | submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:29 |
Methods
addRule()
addRule(rule): void
Parameters
Parameter | Type |
---|---|
rule | IWorksheetProtectionPointRule |
Returns
void
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:31
deleteRule()
deleteRule(unitId, subUnitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:37
deleteUnitModel()
deleteUnitModel(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:83
fromObject()
fromObject(obj): void
Parameters
Parameter | Type |
---|---|
obj | IObjectPointModel |
Returns
void
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:68
getRule()
getRule(unitId, subUnitId): undefined | IWorksheetProtectionPointRule
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
undefined
| IWorksheetProtectionPointRule
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:45
getTargetByPermissionId()
getTargetByPermissionId(unitId, permissionId): undefined | null | string[]
Parameters
Parameter | Type |
---|---|
unitId | string |
permissionId | string |
Returns
undefined
| null
| string
[]
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:96
toObject()
toObject(): IObjectPointModel
Returns
IObjectPointModel
Defined in
submodules/univer/packages/sheets/src/services/permission/worksheet-permission/worksheet-permission-point.model.ts:49