View as Markdown

API reference: @salmonui/pivot-table

PivotAxisBarcomponent

import { PivotAxisBar } from '@salmonui/pivot-table';
function PivotAxisBar<Row = unknown>(props: PivotAxisBarProps<Row>): ReactNode;

The axis bar. Bind it to the same store as the table: <PivotAxisBar pivot={pivot} />.

Props: PivotAxisBarProps

PivotAxisBar props (12)
NameSignatureDescription
pivotreadonly pivot: PivotController<Row>;
aggregateOptionsoptionalreadonly aggregateOptions?: readonly PivotAggregate[] | undefined;
localeTextoptionalreadonly localeText?: PivotLocaleText | undefined;
classNameoptionalreadonly className?: string | undefined;
styleoptionalreadonly style?: CSSProperties | undefined;
showFieldsPaneloptionalinheritedshowFieldsPanel?: boolean;

The fields panel (fields not on the report). Default false.

showAggregateoptionalinheritedshowAggregate?: boolean;

Aggregate menu on value field buttons. Default true.

showFilteroptionalinheritedshowFilter?: boolean;
showSortoptionalinheritedshowSort?: boolean;
showRemoveoptionalinheritedshowRemove?: boolean;
draggableoptionalinheriteddraggable?: boolean;
axesoptionalinheritedaxes?: readonly PivotAxis[];

Axes shown. Default every axis.