Pricing changes are coming in January. Contact our Sales team to secure the current price for your desired license.
All documentation
  • API Reference for older versions
  • 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

    Parameter/TypeDescription
    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 = pivot.getCondition(id);

    Open the example on JSFiddle.

    See also

    addCondition
    getAllConditions
    removeCondition
    removeAllConditions
    Conditional formatting guide