Skip to main content

validateCfCondition

validateCfCondition

validateCfCondition(conditionalMetric: ConditionalMetric , index: number , columnId: string , dataAttr?: DataPointsArray , inScopeParameters?: Parameter[] ) : boolean

Validates if the conditional rule is applicable or not.

Function Parameters

conditionalMetric:::

The conditional rule to be validated.

index:::

  • index: number

The index of the data point to evaluate.

columnId:::

  • columnId: string

The ID of the column for which to validate the rule.

dataAttr::: Optional

The data points array containing the data for the chart.

inScopeParameters::: Optional

The list of parameters available for the chart.

Returns

boolean

Defined in : link:https://github.com/thoughtspot/ts-chart-sdk/blob/f477c20/src/utils/conditional-formatting/conditional-formatting.ts#L151

--