@univerjs/sheets v0.4.2 • Docs
Class: WorksheetProtectionPointModel
Constructors
new WorksheetProtectionPointModel()
new WorksheetProtectionPointModel(): WorksheetProtectionPointModel
Returns
Properties
Property | Type | Defined 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
Parameter | Type |
---|---|
rule | IWorksheetProtectionPointRule |
Returns
void
Defined in
deleteRule()
deleteRule(unitId, subUnitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
void
Defined in
deleteUnitModel()
deleteUnitModel(unitId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Defined in
fromObject()
fromObject(obj): void
Parameters
Parameter | Type |
---|---|
obj | IObjectPointModel |
Returns
void
Defined in
getRule()
getRule(unitId, subUnitId): undefined | IWorksheetProtectionPointRule
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
undefined
| IWorksheetProtectionPointRule
Defined in
getTargetByPermissionId()
getTargetByPermissionId(unitId, permissionId): undefined | null | string[]
Parameters
Parameter | Type |
---|---|
unitId | string |
permissionId | string |
Returns
undefined
| null
| string
[]
Defined in
toObject()
toObject(): IObjectPointModel
Returns
IObjectPointModel