@univerjssheets-conditional-formattingclassesConditionalformattingviewmodel

@univerjs/sheets-conditional-formatting v0.5.0-beta.1Docs


Class: ConditionalFormattingViewModel

Constructors

new ConditionalFormattingViewModel()

new ConditionalFormattingViewModel(): ConditionalFormattingViewModel

Returns

ConditionalFormattingViewModel

Properties

PropertyModifierTypeDefined in
markDirty$publicObservable<{ 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

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
cfIdstring
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

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
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

ParameterType
unitIdstring
subUnitIdstring

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

ParameterType
unitIdstring
subUnitIdstring
ruleIConditionFormattingRule<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

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
cfIdstring

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

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
cfIdstring
valueany

Returns

void

Defined in

sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:61


sortCellCf()

sortCellCf(
   unitId, 
   subUnitId, 
   row, 
   col, 
   cfPriorityMap): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
cfPriorityMapMap<string, number>

Returns

void

Defined in

sheets-conditional-formatting/src/models/conditional-formatting-view-model.ts:116