@univerjs/sheets-conditional-formatting v0.4.2 • 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 (opens in a new tab) |
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
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
getMatrix()
getMatrix(unitId, subUnitId): undefined | ObjectMatrix<ICellItem>
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
Returns
undefined
| ObjectMatrix
<ICellItem
>
Defined in
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
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
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
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