# PivotConditionalFormat (@salmonui/pivot-table/engine)

> The PivotConditionalFormat interface of @salmonui/pivot-table/engine.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotConditionalFormat

```ts
import type { PivotConditionalFormat } from '@salmonui/pivot-table/engine';
```

Also exported from `@salmonui/pivot-table`.

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: interface

```ts
interface PivotConditionalFormat {
    readonly measure?: string;
    readonly operator: PivotValueOperator;
    readonly value: number;
    readonly value2?: number;
    readonly className?: string;
    readonly tone?: 'accent' | 'success' | 'warning' | 'danger' | 'neutral';
    readonly style?: Readonly<Record<string, string>>;
    readonly applyGrandTotals?: boolean;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `measure` | `readonly measure?: string;` | optional | Measure name; omitted = every value field. |
| `operator` | `readonly operator: PivotValueOperator;` |  |  |
| `value` | `readonly value: number;` |  |  |
| `value2` | `readonly value2?: number;` | optional |  |
| `className` | `readonly className?: string;` | optional | A class added to the cell, or one of the seed tones. |
| `tone` | `readonly tone?: 'accent' \| 'success' \| 'warning' \| 'danger' \| 'neutral';` | optional |  |
| `style` | `readonly style?: Readonly<Record<string, string>>;` | optional |  |
| `applyGrandTotals` | `readonly applyGrandTotals?: boolean;` | optional | Apply to grand total cells too (default true). |
