View as Markdown

API reference: @salmonui/pivot-table

usePivotfunction

import { usePivot } from '@salmonui/pivot-table';
function usePivot<Row = unknown>(own?: UsePivotOptions<Row>): PivotController<Row>;

Creates the pivot store shared by PivotTable, PivotFieldList, PivotAxisBar, PivotToolbar and the chart adapters. The component that calls it re-renders when the result or the status changes.