Class: RangeProtectionRuleModel
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:58
Constructors
new RangeProtectionRuleModel()
new RangeProtectionRuleModel(): RangeProtectionRuleModel
Returns
Properties
Methods
addRule()
addRule(
unitId,
subUnitId,
rule): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:87
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | IRangeProtectionRule |
Returns
void
changeRuleInitState()
changeRuleInitState(state): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:83
Parameters
Parameter | Type |
---|---|
state | boolean |
Returns
void
createRuleId()
createRuleId(unitId, subUnitId): string
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:174
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
string
deleteRule()
deleteRule(
unitId,
subUnitId,
id): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:93
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
Returns
void
deleteUnitModel()
deleteUnitModel(unitId): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:170
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
fromObject()
fromObject(obj): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:153
Parameters
Parameter | Type |
---|---|
obj | IObjectModel |
Returns
void
getRangeRuleInitState()
getRangeRuleInitState(): boolean
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:79
Returns
boolean
getRule()
getRule(
unitId,
subUnitId,
id):
| undefined
| IRangeProtectionRule
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:109
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
Returns
| undefined
| IRangeProtectionRule
getSubunitRuleList()
getSubunitRuleList(unitId, subUnitId): IRangeProtectionRule[]
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:113
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
getSubunitRuleListLength()
getSubunitRuleListLength(unitId, subUnitId): number
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:118
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
number
getTargetByPermissionId()
getTargetByPermissionId(unitId, permissionId): null | string[]
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:183
Parameters
Parameter | Type |
---|---|
unitId | string |
permissionId | string |
Returns
null
| string
[]
ruleRefresh()
ruleRefresh(id): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:72
Parameters
Parameter | Type |
---|---|
id | string |
Returns
void
setRule()
setRule(
unitId,
subUnitId,
id,
rule): void
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:101
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
id | string |
rule | IRangeProtectionRule |
Returns
void
toObject()
toObject(): IObjectModel
Defined in: submodules/univer/packages/sheets/src/model/range-protection-rule.model.ts:138