API reference: @salmonui/pivot-table/engine
PivotConditionalFormatinterface
import type { PivotConditionalFormat } from '@salmonui/pivot-table/engine';Also exported from @salmonui/pivot-table.
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;
}
| Name | Signature | Description |
|---|---|---|
measureoptional | readonly measure?: string; | Measure name; omitted = every value field. |
operator | readonly operator: PivotValueOperator; | |
value | readonly value: number; | |
value2optional | readonly value2?: number; | |
classNameoptional | readonly className?: string; | A class added to the cell, or one of the seed tones. |
toneoptional | readonly tone?: 'accent' | 'success' | 'warning' | 'danger' | 'neutral'; | |
styleoptional | readonly style?: Readonly<Record<string, string>>; | |
applyGrandTotalsoptional | readonly applyGrandTotals?: boolean; | Apply to grand total cells too (default true). |