> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IConditionalFormatting

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: interface
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/conditionalFormatting/index.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Conditional-formatting settings: an on/off toggle plus the ordered list of rules. Stored on the table config and (when persisted) on the insight's `properties.controls.conditionalFormatting`.

**Signature:**

```typescript
export interface IConditionalFormatting 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enabled](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iconditionalformatting/index.md#iconditionalformattingenabled) |  | boolean | **_(ALPHA)_** |
| [rules](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iconditionalformatting/index.md#iconditionalformattingrules) |  | [IConditionalFormattingRule](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iconditionalformattingrule/index.md)[] | **_(ALPHA)_** |
| [suppressedTargets?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iconditionalformatting/index.md#iconditionalformattingsuppressedtargets) |  | [ConditionalFormattingTarget](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.conditionalformattingtarget/index.md)[] | **_(ALPHA)_** _(Optional)_ Targets whose formatting is explicitly suppressed — turned off rather than inherited from any semantic-layer conditional formatting carried on the execution result (see [ISemanticConditionalFormatting](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.isemanticconditionalformatting/index.md)). A target listed here shows no formatting even if the semantic layer has rules for it. A target not listed here (or when this is absent) is Inherited: semantic rules apply as-is. |
| [version?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iconditionalformatting/index.md#iconditionalformattingversion) |  | string | **_(ALPHA)_** _(Optional)_ Model version of the persisted shape (mirrors the dashboard model-version convention). Absent is treated as `"1"`. Lets the persisted contract evolve for cross-stack readers (e.g. server XLSX export) without breaking older saved insights. |

## Property details

### IConditionalFormatting.enabled

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

**Signature:**

```typescript
enabled: boolean;
```

### IConditionalFormatting.rules

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

**Signature:**

```typescript
rules: IConditionalFormattingRule[];
```

### IConditionalFormatting.suppressedTargets

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Targets whose formatting is explicitly suppressed — turned off rather than inherited from any semantic-layer conditional formatting carried on the execution result (see [ISemanticConditionalFormatting](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.isemanticconditionalformatting/index.md)). A target listed here shows no formatting even if the semantic layer has rules for it. A target not listed here (or when this is absent) is Inherited: semantic rules apply as-is.

**Signature:**

```typescript
suppressedTargets?: ConditionalFormattingTarget[];
```

### IConditionalFormatting.version

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Model version of the persisted shape (mirrors the dashboard model-version convention). Absent is treated as `"1"`. Lets the persisted contract evolve for cross-stack readers (e.g. server XLSX export) without breaking older saved insights.

**Signature:**

```typescript
version?: string;
```
