Get Free Trial
API reference
Table of contents

getCondition

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.

Parameters

  • id – String. The id of the condition.

Returns

ConditionalFormatObject that describes the conditional formatting rule.

Example

To get the conditional formatting rule by id use getCondition(), as follows:

let id = "9";
let condition = flexmonster.getCondition(id);

Open the example on JSFiddle.

See also

addCondition
getAllConditions
removeCondition
removeAllConditions
Conditional formatting guide