@univerjs/sheets-conditional-formatting v0.5.0-beta.1 • Docs
Class: ConditionalFormattingViewModel
Constructors
new ConditionalFormattingViewModel()
new ConditionalFormattingViewModel(): ConditionalFormattingViewModel
Returns
ConditionalFormattingViewModel
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
markDirty$ | public | Observable <{ rule : IConditionFormattingRule <IConditionalFormattingRuleConfig >; subUnitId : string ; unitId : string ; }> | sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:32 |
Methods
deleteCellCf()
deleteCellCf(
unitId,
subUnitId,
row,
col,
cfId,
matrix?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
cfId | string |
matrix ? | ObjectMatrix <ICellItem > |
Returns
void
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:71
getCellCf()
getCellCf(
unitId,
subUnitId,
row,
col,
matrix?): Nullable<ICellItem>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
matrix ? | ObjectMatrix <ICellItem > |
Returns
Nullable
<ICellItem
>
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:52
getMatrix()
getMatrix(unitId, subUnitId): undefined | ObjectMatrix<ICellItem>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
undefined
| ObjectMatrix
<ICellItem
>
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:48
markRuleDirty()
markRuleDirty(
unitId,
subUnitId,
rule,
row?,
col?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
rule | IConditionFormattingRule <IConditionalFormattingRuleConfig > |
row ? | number |
col ? | number |
Returns
void
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:138
pushCellCf()
pushCellCf(
unitId,
subUnitId,
row,
col,
cfId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
cfId | string |
Returns
void
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:94
setCellCfRuleCache()
setCellCfRuleCache(
unitId,
subUnitId,
row,
col,
cfId,
value): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
cfId | string |
value | any |
Returns
void
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:61
sortCellCf()
sortCellCf(
unitId,
subUnitId,
row,
col,
cfPriorityMap): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
cfPriorityMap | Map <string , number > |
Returns
void
Defined in
sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:116