View as Markdown

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;
}
PivotConditionalFormat members (8)
NameSignatureDescription
measureoptionalreadonly measure?: string;

Measure name; omitted = every value field.

operatorreadonly operator: PivotValueOperator;
valuereadonly value: number;
value2optionalreadonly value2?: number;
classNameoptionalreadonly className?: string;

A class added to the cell, or one of the seed tones.

toneoptionalreadonly tone?: 'accent' | 'success' | 'warning' | 'danger' | 'neutral';
styleoptionalreadonly style?: Readonly<Record<string, string>>;
applyGrandTotalsoptionalreadonly applyGrandTotals?: boolean;

Apply to grand total cells too (default true).