API Reference
@univerjs
@univerjs/sheets-conditional-formatting
classes
Conditionalformattingviewmodel

@univerjs/sheets-conditional-formatting v0.4.2Docs


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 (opens in a new tab)

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 (opens in a new tab)


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 (opens in a new tab)


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 (opens in a new tab)


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 (opens in a new tab)


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 (opens in a new tab)


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 (opens in a new tab)


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 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.