View as Markdown

Salmon UI Pivot Table documentation

Every page below embeds live demos; each demo also has a standalone route.

Pivot Table

  • Pivot Table

    PivotTable, PivotFieldList, PivotAxisBar and PivotToolbar bound to one usePivot store; the report model, lifecycle events, virtualization, paging, on-demand features, loading state and SSR.

    1 demo

  • Layouts and drill down

    The compact layout (row members as a treegrid in one column) and the tabular layout (one pinned column per row field), drill down and up, expanded members, expand and collapse all, and the keyboard.

    1 demo

  • Appearance and templates

    The whitelisted display props, renderCell, renderHeader, getCellClassName and renderTooltip, a hyperlink recipe with onCellClick, and cell selection with its events.

    1 demo

  • Toolbar, export and print

    PivotToolbar built-in and custom items, export to Excel, PDF and CSV and print from the toolbar or the instance API with a lazily loaded writer, and the onBeforeExport and onExport events.

    1 demo

  • State and events

    Controlled and uncontrolled report models, the cancellable command and event model with onBeforePivotModelChange and onError, getState and restoreState, persistState and saved reports.

    0 demos

  • Remote pivot

    Aggregate on the server with the pivot request kind of the Salmon UI JSON protocol, a window-based remote engine on the client, auth headers and request hooks, and a Node reference handler running the same engine.

    1 demo

  • Accessibility and localization

    The ARIA patterns and keyboard map of PivotTable, PivotFieldList, PivotAxisBar, PivotToolbar and the pivot dialogs, the localeText catalog, number and date formatting per locale, and right-to-left layouts.

    1 demo

  • Performance

    Pivot Table budgets on 1,000,000 rows (initial aggregation, first paint, drill, filter, sort), the measured timings, and how the release gates assert them.

    1 demo

  • Export

    Export a pivot result to an outlined XLSX sheet, a paginated PDF or CSV with exportPivot, with number formats, total styles, conditional formats, a cell hook, streamed CSV and server-side export of remote pivots.

    0 demos

Fields and filters

  • Field list

    The popup and standalone PivotFieldList bound to the shared store, field search, field order and folders, drag and drop with the keyboard Move-to alternative, field menus, deferUpdate, field move events, the Values item and small screens.

    1 demo

  • Axis bar

    PivotAxisBar, the grouping bar - field buttons for the Filters, Columns, Rows and Values axes with sort, filter, aggregation and remove, the fields panel, per-field options, drag and drop and the keyboard.

    1 demo

  • Filtering UI

    The member editor dialog with search, select all and a virtualized member list without a node limit, the label and value filter forms, and the onBeforeFilterChange, onFilterChange and onBeforeMemberEditorOpen events.

    1 demo

  • Editors

    The calculated field editor with live formula validation, the number format and conditional format dialogs, and the grouping dialog for number ranges, date parts and custom groups, opened from menus, the toolbar or the instance API.

    1 demo

Drill through and chart

  • Drill through

    Open the raw rows behind a value cell in a DataGrid dialog with a column chooser and a row limit, edit them in any Data Grid editing mode, and write the edits back with incremental re-aggregation and onDataChange.

    1 demo

  • Pivot chart

    Compose Chart with PivotTable; pivotChartProps and pivotToSeries turn a pivot result into Chart data and series, point clicks drill down, up or through, and the chart exports, prints and joins the table in one PDF.

    1 demo

Engine

  • Pivot engine

    The framework-agnostic pivot engine at @salmonui/pivot-table/engine — report model, local and CSV data, field definitions, the result accessors, incremental data updates, time slicing and the Worker host.

    1 demo

  • Aggregation

    Pivot aggregation types over mergeable states, show values as, the getCellValue override, calculated field formulas and automatic data compression.

    1 demo

  • Filtering, sorting and grouping

    Pivot member, label and value filters (top and bottom N), member sort with locale collation and custom order, value sort, and number, date and custom grouping in the engine.

    1 demo

  • Totals and values placement

    Pivot grand totals and subtotals with their positions, values on rows or columns at any level, empty members and the value header.

    1 demo