getCondition(id: String): ConditionalFormatObject
[starting from version: 1.6]
Returns a conditional formatting rule by id. You may need this API call to edit the existing conditional formatting rule.
Parameter/Type | Description |
---|---|
id String | The id of the condition. |
ConditionalFormatObject that describes the conditional formatting rule.
To get the conditional formatting rule by id use getCondition()
, as follows:
let id = "9";
let condition = pivot.getCondition(id);
Open the example on JSFiddle.
addCondition
getAllConditions
removeCondition
removeAllConditions
Conditional formatting guide