We have updated Flexmonster Software License Agreement, effective as of September 30, 2025 (list of changes)
All documentation

getCondition

getCondition(id: String): ConditionalFormatObject

Returns a conditional formatting rule by id. You may need this API call to edit the existing conditional formatting rule.

Parameters

Parameter/TypeDescription
id
String
The id of the condition.

Returns

ConditionalFormatObject that describes the conditional formatting rule.

Example

let id = "1";
let condition = pivot.getCondition(id);

Open the example on JSFiddle.

See also

addCondition()
getAllConditions()
removeCondition()
removeAllConditions()
Conditional formatting guide