View as Markdown

API reference

@salmonui/data-grid

271 exported symbols: 21 components, 10 functions, 182 interfaces, 52 types and 6 constants. Each name links its page with the signature, docs and members. Names re-exported from 4 other entry points are listed there, linked below.

import { … } from '@salmonui/data-grid';

Components

  • DataGridVirtualized data grid (React 19). One scroll container, one role="grid" tree, sticky header, frozen columns outside horizontal virtualization. DataGrid state l…
  • DataGridAggregateJSX aggregate. One aggregate of an aggregate row.
  • DataGridAggregateRowJSX aggregate row; its <DataGridAggregate> children are the aggregates. One aggregate row of the aggregates prop.
  • DataGridCellBody cell part. Subscribes to its own engine cell channel only, so a change to one cell re-renders one cell. memo (instead of compiler-derived memoization, the…
  • DataGridColumnJSX column. Renders nothing; nested <DataGridColumn> children form a stacked header. A column definition: the props of <DataGridColumn> and the items of the co…
  • DataGridDefaultCellDefault cell content: formatted text, or a read-only checkbox for displayAsCheckbox columns.
  • DataGridDefaultPager
  • DataGridDetailRowDetail row keyed by its detail:<rowId> id. Re-renders when its parent row object, its async load state, or the detail render props change.
  • DataGridDetailToggleExpand/collapse button of the detail column; re-renders only when its row's expansion changes.
  • DataGridFooterSticky grid footer with the footer aggregate rows.
  • DataGridGroupCaptionRowGroup caption row (role="row" with one spanning gridcell).
  • DataGridGroupFooterRowGroup footer row (group-level aggregates).
  • DataGridGroupIndentFrozen group indent block (levels x indent width); presentational, outside the accessibility tree.
  • DataGridGroupPanelGroup drop area and chips.
  • DataGridIconsProviderSupplies icon overrides to every DataGrid below it (for example one icon set for an application). Nested providers and a grid's icons prop merge over the outer…
  • DataGridOutputStatusExport and print busy indicator: a spinner overlay with a polite status while a file or the print document is produced. Renders nothing (and never on the serve…
  • DataGridPager
  • DataGridRowrole="row" part for row templates: spread rowProps and place cells inside.
  • DataGridSearchBox
  • DataGridToolbarToolbar part (toolbar prop).
  • DataGridTreeToggleTree toggle part (also for renderRow templates).

Functions

  • defineChildGridTypes a childGrid by its child row type (identity at runtime). The childGrid prop holds child grids of any row type, so its child rows are unknown; this helper…
  • downloadBlobSaves a Blob or an export file through a temporary object URL. Returns false outside a browser (SSR, workers without a document), so it is safe to call anywher…
  • useDataGridApiThe imperative API of the enclosing DataGrid, for slots and descendants.

Interfaces

Types

Constants

Re-exported entry points