# DataGridChildGrid (@salmonui/data-grid)

> The DataGridChildGrid interface of @salmonui/data-grid: childGrid prop: every DataGrid prop of the child, plus the child rows and the relation. The child inherits locale, dir, timeZone, and currency unless set.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridChildGrid

```ts
import type { DataGridChildGrid } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridChildGrid<Child = unknown, Parent = unknown> extends Omit<DataGridProps<Child>, 'data' | 'id' | 'ref' | 'children'> {
    readonly data: readonly Child[] | DataSource<Child> | ((parent: DataGridChildGridParent<Parent>) => readonly Child[] | DataSource<Child>);
    readonly joinField?: string;
    readonly parentField?: string;
    readonly childField?: string;
}
```

`childGrid` prop: every
`DataGrid` prop of the child, plus the child rows and the relation. The child
inherits `locale`, `dir`, `timeZone`, and `currency` unless set.

Members (163):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Child[] \| DataSource<Child> \| ((parent: DataGridChildGridParent<Parent>) => readonly Child[] \| DataSource<Child>);` |  | Child rows: one array shared by every parent (indexed once by the join value), a data source (remote sources receive the relation filter), or a factory per parent. |
| `joinField` | `readonly joinField?: string;` | optional | Field present in parent and child rows. |
| `parentField` | `readonly parentField?: string;` | optional | Parent field when the names differ. Default `joinField`. |
| `childField` | `readonly childField?: string;` | optional | Child field when the names differ. Default `joinField`. |
| `pinnedColumns` | `pinnedColumns?: DataGridPinnedColumns;` | optional, inherited | The first / last N visible columns are pinned. Reactive. |
| `stickyRows` | `stickyRows?: number;` | optional, inherited | The first N rows of the visible row model stick below the header. |
| `stickyBottomRows` | `stickyBottomRows?: number;` | optional, inherited | The last N rows of the visible row model stick above the footer. |
| `onBeforeColumnPinChange` | `onBeforeColumnPinChange?: ((event: DataGridColumnPinChangeEvent) => void);` | optional, inherited |  |
| `onColumnPinChange` | `onColumnPinChange?: ((event: DataGridColumnPinChangeEvent) => void);` | optional, inherited |  |
| `mergeCells` | `mergeCells?: DataGridMergeCells;` | optional, inherited | DataGrid-wide merging of equal adjacent values (row merging also works under row virtualization). |
| `columnMenu` | `columnMenu?: boolean \| readonly (DataGridMenuItem \| DataGridColumnMenuItemId)[];` | optional, inherited | Column menu; an array lists the items in order (built-in ids or custom items). `column.menu: false` opts a column out. |
| `onBeforeColumnMenuOpen` | `onBeforeColumnMenuOpen?: ((event: DataGridColumnMenuOpenEvent<Child>) => void);` | optional, inherited |  |
| `onBeforeColumnMenuClose` | `onBeforeColumnMenuClose?: ((event: DataGridColumnMenuCloseEvent<Child>) => void);` | optional, inherited |  |
| `onColumnMenuItemClick` | `onColumnMenuItemClick?: ((event: DataGridColumnMenuItemClickEvent<Child>) => void);` | optional, inherited |  |
| `renderColumnMenu` | `renderColumnMenu?: ((ctx: DataGridColumnMenuContext<Child>) => ReactNode);` | optional, inherited |  |
| `columnChooser` | `columnChooser?: boolean \| DataGridColumnChooser<Child>;` | optional, inherited |  |
| `onBeforeColumnChooserOpen` | `onBeforeColumnChooserOpen?: ((event: DataGridColumnChooserOpenEvent<Child>) => void);` | optional, inherited |  |
| `toolbar` | `toolbar?: readonly (DataGridToolbarItem \| DataGridToolbarItemId)[];` | optional, inherited |  |
| `onToolbarItemClick` | `onToolbarItemClick?: ((event: DataGridToolbarItemClickEvent) => void);` | optional, inherited |  |
| `renderToolbar` | `renderToolbar?: ((ctx: DataGridToolbarContext<Child>) => ReactNode);` | optional, inherited |  |
| `contextMenu` | `contextMenu?: boolean \| readonly (DataGridMenuItem \| DataGridContextMenuItemId)[];` | optional, inherited | Context menu; an array lists the items in order. Items that do not apply to the target are dropped. |
| `onBeforeContextMenuOpen` | `onBeforeContextMenuOpen?: ((event: DataGridContextMenuOpenEvent) => void);` | optional, inherited |  |
| `onBeforeContextMenuClose` | `onBeforeContextMenuClose?: ((event: DataGridContextMenuCloseEvent) => void);` | optional, inherited |  |
| `onContextMenuItemClick` | `onContextMenuItemClick?: ((event: DataGridContextMenuItemClickEvent<Child>) => void);` | optional, inherited |  |
| `renderContextMenu` | `renderContextMenu?: ((ctx: DataGridContextMenuContext) => ReactNode);` | optional, inherited |  |
| `onColumnResizeStart` | `onColumnResizeStart?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnResize` | `onColumnResize?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnResizeEnd` | `onColumnResizeEnd?: ((event: DataGridColumnResizeEvent) => void);` | optional, inherited |  |
| `onColumnDragStart` | `onColumnDragStart?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `onColumnDrag` | `onColumnDrag?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `onColumnDrop` | `onColumnDrop?: ((event: DataGridColumnDragEvent) => void);` | optional, inherited |  |
| `adaptive` | `adaptive?: boolean \| DataGridAdaptive;` | optional, inherited | Adaptive UI (`enableAdaptiveUI`, `adaptiveUIMode`, `rowRenderingMode`): full-screen sheets for menus and dialogs, 44 px touch targets, touch long-press, and optional vertical (card) rows. `true` is `{ target: 'both' }`. |
| `onBeforeAdaptiveDialogOpen` | `onBeforeAdaptiveDialogOpen?: ((event: DataGridAdaptiveDialogOpenEvent) => void);` | optional, inherited |  |
| `onBeforeCopy` | `onBeforeCopy?: ((event: DataGridBeforeCopyEvent) => void);` | optional, inherited |  |
| `onBeforePaste` | `onBeforePaste?: ((event: DataGridBeforePasteEvent) => void);` | optional, inherited |  |
| `onBeforeFill` | `onBeforeFill?: ((event: DataGridBeforeFillEvent) => void);` | optional, inherited |  |
| `editing` | `editing?: boolean \| DataGridEditing<Child>;` | optional, inherited | Editing. `true` for the defaults (row mode). The module is registered when the initial value is set. |
| `onBeforeEditStart` | `onBeforeEditStart?: ((event: DataGridEditStartEvent<Child>) => void);` | optional, inherited |  |
| `onEditStart` | `onEditStart?: ((event: DataGridEditStartEvent<Child>) => void);` | optional, inherited |  |
| `onBeforeCellValueChange` | `onBeforeCellValueChange?: ((event: DataGridCellValueChangeEvent) => void);` | optional, inherited |  |
| `onCellValueChange` | `onCellValueChange?: ((event: DataGridCellValueChangeEvent) => void);` | optional, inherited |  |
| `onBeforeSave` | `onBeforeSave?: ((event: DataGridSaveEvent<Child>) => void);` | optional, inherited |  |
| `onSave` | `onSave?: ((event: DataGridSaveEvent<Child>) => void);` | optional, inherited |  |
| `onBeforeAdd` | `onBeforeAdd?: ((event: DataGridAddEvent<Child>) => void);` | optional, inherited |  |
| `onAdd` | `onAdd?: ((event: DataGridAddEvent<Child>) => void);` | optional, inherited |  |
| `onBeforeDelete` | `onBeforeDelete?: ((event: DataGridDeleteEvent<Child>) => void);` | optional, inherited |  |
| `onDelete` | `onDelete?: ((event: DataGridDeleteEvent<Child>) => void);` | optional, inherited |  |
| `onBeforeEditCancel` | `onBeforeEditCancel?: ((event: DataGridEditCancelEvent) => void);` | optional, inherited |  |
| `onEditCancel` | `onEditCancel?: ((event: DataGridEditCancelEvent) => void);` | optional, inherited |  |
| `onCommandClick` | `onCommandClick?: ((event: DataGridCommandClickEvent<Child>) => void);` | optional, inherited |  |
| `sorting` | `sorting?: boolean \| DataGridSorting;` | optional, inherited | `true` or options: header sorting. |
| `filtering` | `filtering?: boolean \| DataGridFiltering;` | optional, inherited | `true` or options: filtering and its UI. |
| `search` | `search?: boolean \| DataGridSearch;` | optional, inherited | `true` or options: searching. |
| `paging` | `paging?: boolean \| DataGridPaging;` | optional, inherited | `true` or options: paging and the pager. |
| `renderPager` | `renderPager?: ((ctx: DataGridPagerContext) => ReactNode);` | optional, inherited | Replaces the pager. |
| `onBeforeSortChange` | `onBeforeSortChange?: ((event: DataGridSortChangeEvent) => void);` | optional, inherited |  |
| `onSortChange` | `onSortChange?: ((event: DataGridSortChangeEvent) => void);` | optional, inherited |  |
| `onBeforeFilterChange` | `onBeforeFilterChange?: ((event: DataGridFilterChangeEvent) => void);` | optional, inherited |  |
| `onFilterChange` | `onFilterChange?: ((event: DataGridFilterChangeEvent) => void);` | optional, inherited |  |
| `onBeforeFilterMenuOpen` | `onBeforeFilterMenuOpen?: ((event: DataGridFilterMenuOpenEvent) => void);` | optional, inherited |  |
| `onFilterMenuOpen` | `onFilterMenuOpen?: ((event: DataGridFilterMenuOpenEvent) => void);` | optional, inherited |  |
| `onBeforeSearchChange` | `onBeforeSearchChange?: ((event: DataGridSearchChangeEvent) => void);` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((event: DataGridSearchChangeEvent) => void);` | optional, inherited |  |
| `onBeforePageChange` | `onBeforePageChange?: ((event: DataGridPageChangeEvent) => void);` | optional, inherited |  |
| `onPageChange` | `onPageChange?: ((event: DataGridPageChangeEvent) => void);` | optional, inherited |  |
| `onError` | `onError?: ((event: DataGridErrorEvent) => void);` | optional, inherited | An action was rejected (unknown column, page out of range, ...). |
| `renderDetail` | `renderDetail?: ((ctx: DataGridDetailContext<Child>) => ReactNode);` | optional, inherited | Detail row content below each expanded row. |
| `detailHeight` | `detailHeight?: number;` | optional, inherited | Estimated detail row height in px before measurement. Default 150. |
| `hasDetail` | `hasDetail?: ((row: Child) => boolean);` | optional, inherited | Rows without a detail (no toggle). Called for rendered rows only. |
| `loadDetail` | `loadDetail?: ((ctx: DataGridDetailLoadContext<Child>) => unknown);` | optional, inherited | Async detail content, started on expand; `renderDetail` receives `status`, `data`, `error`. |
| `defaultExpandedDetails` | `defaultExpandedDetails?: boolean \| readonly string[];` | optional, inherited | Initially expanded details: `true` for every row, or row ids (initial only). |
| `childGrid` | `childGrid?: DataGridChildGrid<unknown, Child>;` | optional, inherited | Child grid inside each expanded row (hierarchy grid). An inline object sees child rows as `unknown`; `defineChildGrid<Child, Parent>(config)` types the child rows. |
| `onBeforeDetailToggle` | `onBeforeDetailToggle?: ((event: DataGridDetailToggleEvent<Child>) => void);` | optional, inherited |  |
| `onDetailToggle` | `onDetailToggle?: ((event: DataGridDetailToggleEvent<Child>) => void);` | optional, inherited |  |
| `rowDrag` | `rowDrag?: boolean \| DataGridRowDrag;` | optional, inherited | Row drag and drop with a drag handle column; `true` reorders within the grid. |
| `onRowDragStart` | `onRowDragStart?: ((event: DataGridRowDragEvent<Child>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrag` | `onRowDrag?: ((event: DataGridRowDragEvent<Child>) => void);` | optional, inherited | Once per animation frame while dragging. |
| `onBeforeRowDrop` | `onBeforeRowDrop?: ((event: DataGridRowDragEvent<Child>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrop` | `onRowDrop?: ((event: DataGridRowDragEvent<Child>) => void);` | optional, inherited |  |
| `renderRowDragPreview` | `renderRowDragPreview?: ((ctx: DataGridRowDragPreviewContext<Child>) => ReactNode);` | optional, inherited | Drag preview content (default: the first cell text and the row count). |
| `exportWriters` | `exportWriters?: DataGridExportWriters;` | optional, inherited | Excel and PDF writer loaders; without one the matching toolbar and menu items are disabled. |
| `onBeforeExport` | `onBeforeExport?: ((event: DataGridBeforeExportEvent<Child>) => void);` | optional, inherited |  |
| `onExport` | `onExport?: ((event: DataGridExportEvent<Child>) => void);` | optional, inherited |  |
| `printing` | `printing?: DataGridPrinting<Child>;` | optional, inherited | Print scope and hierarchy mode (`print()` options override them). |
| `onBeforePrint` | `onBeforePrint?: ((event: DataGridBeforePrintEvent) => void);` | optional, inherited |  |
| `onAfterPrint` | `onAfterPrint?: ((event: DataGridAfterPrintEvent) => void);` | optional, inherited |  |
| `loadingIndicator` | `loadingIndicator?: "skeleton" \| "spinner";` | optional, inherited | Built-in loading indicator. Default `spinner`. |
| `renderLoading` | `renderLoading?: ((ctx: DataGridLoadingContext) => ReactNode);` | optional, inherited | Replaces the content of the loading indicator (presentational: the grid announces loading itself). |
| `onRowClick` | `onRowClick?: ((event: DataGridRowClickEvent<Child>) => void);` | optional, inherited | A data row was clicked. `preventDefault()` skips the built-in selection and focus. |
| `onRowDoubleClick` | `onRowDoubleClick?: ((event: DataGridRowClickEvent<Child>) => void);` | optional, inherited | A data row was double-clicked. `preventDefault()` skips the built-in edit start. |
| `onCellClick` | `onCellClick?: ((event: DataGridCellClickEvent<Child>) => void);` | optional, inherited | A cell of a data row was clicked; fires before `onRowClick`. |
| `onCellDoubleClick` | `onCellDoubleClick?: ((event: DataGridCellClickEvent<Child>) => void);` | optional, inherited | A cell of a data row was double-clicked; fires before `onRowDoubleClick`. |
| `recordCommands` | `recordCommands?: boolean;` | optional, inherited | Keeps a serializable log of applied commands (`api.engine.getCommandLog()`). Initial only. Default false. |
| `instrument` | `instrument?: boolean;` | optional, inherited | Exposes store counters (`api.engine.getInstrumentation()`). Initial only. Default false. |
| `tree` | `tree?: boolean \| DataGridTree<Child>;` | optional, inherited | Tree mode: rows with children, indented in the tree column. Read at creation (its options are reactive). |
| `onBeforeTreeToggle` | `onBeforeTreeToggle?: ((event: DataGridTreeToggleEvent<Child>) => void);` | optional, inherited |  |
| `onTreeToggle` | `onTreeToggle?: ((event: DataGridTreeToggleEvent<Child>) => void);` | optional, inherited |  |
| `isRowPinned` | `isRowPinned?: ((row: Child) => boolean);` | optional, inherited | Rows pinned to the top zone. Pinned rows stay visible above the scrolling rows on every page, are left out of `pageSize`, and follow sorting, filtering, search and edits. Pure; read once when the grid is created. Turns row pinning on. |
| `defaultPinnedRows` | `defaultPinnedRows?: readonly string[];` | optional, inherited | Initially pinned row ids (initial only). Turns row pinning on; pass `[]` to only use `pinRows`. |
| `onBeforeFilterBuilderOpen` | `onBeforeFilterBuilderOpen?: ((event: DataGridFilterBuilderOpenEvent) => void);` | optional, inherited |  |
| `columns` | `columns?: readonly DataGridColumn<Child>[];` | optional, inherited | Column definitions; `<DataGridColumn>` children are the JSX form (children win over `columns`). |
| `getRowId` | `getRowId?: ((row: Child) => string \| number);` | optional, inherited | Row identity. Default: the `primaryKey` column(s), else the `id` field (with a development warning). |
| `modules` | `modules?: readonly DataGridModule<Child, unknown, DataGridCommand, string, {}>[];` | optional, inherited | Extra core modules (initial only). |
| `features` | `features?: readonly DataGridFeature[];` | optional, inherited | *Salmon*. Render features to use synchronously, from `@salmonui/data-grid/features`. Optional: a grid loads the features its props need on demand; features passed here skip that load (no placeholder on a client-only render). Read at creation. |
| `locale` | `locale?: string;` | optional, inherited |  |
| `timeZone` | `timeZone?: string;` | optional, inherited | IANA time zone for date formatting. Set it for SSR: server and client must format identically. |
| `currency` | `currency?: string;` | optional, inherited |  |
| `dir` | `dir?: "auto" \| "ltr" \| "rtl";` | optional, inherited | Text direction. `'auto'` follows the `locale` script (`ar`, `he`, `fa`, ... are right-to-left). Default: the inherited `dir`. Reactive. |
| `height` | `height?: string \| number;` | optional, inherited | Viewport height: px, any CSS length (`'100%'` needs a fixed-height parent), or `'auto'` (no row virtualization). Default 400. |
| `width` | `width?: string \| number;` | optional, inherited |  |
| `rowHeight` | `rowHeight?: number;` | optional, inherited | Fixed row height in px. Default 36. |
| `getRowHeight` | `getRowHeight?: ((row: Child) => number);` | optional, inherited | Per-row fixed height. |
| `estimatedRowHeight` | `estimatedRowHeight?: number;` | optional, inherited | Enables measured row heights with this estimate (variable content, templates, wrapping). |
| `headerHeight` | `headerHeight?: number;` | optional, inherited | Header row height in px (per stacked level). Default 40. |
| `defaultColumnWidth` | `defaultColumnWidth?: number;` | optional, inherited | Width of columns without `width`. Default 160. |
| `virtualization` | `virtualization?: boolean \| DataGridVirtualization;` | optional, inherited | Row and column virtualization; `true` (default) for the defaults, `false` renders every row and column. |
| `infiniteScroll` | `infiniteScroll?: boolean \| DataGridInfiniteScroll<Child>;` | optional, inherited | Infinite scrolling for remote sources: rows load in blocks as the viewport approaches them. |
| `renderLoadingRow` | `renderLoadingRow?: ((ctx: DataGridLoadingRowContext) => ReactNode);` | optional, inherited | Placeholder row while its block loads, or after the load failed. Default: the loading text, or the error and a Retry button. |
| `initialRows` | `initialRows?: number;` | optional, inherited | Rows in the deterministic server/initial range. Default 20. |
| `initialColumns` | `initialColumns?: number;` | optional, inherited | Center columns in the deterministic server/initial range. Default 20. |
| `textWrap` | `textWrap?: DataGridTextWrap;` | optional, inherited |  |
| `gridLines` | `gridLines?: DataGridLines;` | optional, inherited |  |
| `overflow` | `overflow?: DataGridOverflow;` | optional, inherited | Default text overflow of every column. Default `ellipsis`. |
| `highlightOnHover` | `highlightOnHover?: boolean;` | optional, inherited | Row hover highlight. Default true. |
| `striped` | `striped?: boolean;` | optional, inherited | Alternate row shading. Default true. |
| `resizable` | `resizable?: boolean;` | optional, inherited | Pointer and keyboard column resize. Default false; column `resizable` refines it. |
| `resizeMode` | `resizeMode?: "auto" \| "normal";` | optional, inherited | Column fit. `'normal'` (default): widths are kept, leaving empty space or scrolling. `'auto'`: when the columns are narrower than the grid they stretch proportionally to fill it, and a pointer resize re-fits the other columns. |
| `reorderable` | `reorderable?: boolean;` | optional, inherited | Pointer and keyboard column reorder. Default false; column `reorderable` refines it. |
| `onBeforeColumnVisibilityChange` | `onBeforeColumnVisibilityChange?: ((event: DataGridColumnVisibilityChangeEvent) => void);` | optional, inherited |  |
| `onColumnVisibilityChange` | `onColumnVisibilityChange?: ((event: DataGridColumnVisibilityChangeEvent) => void);` | optional, inherited |  |
| `onBeforeColumnReorder` | `onBeforeColumnReorder?: ((event: DataGridColumnReorderEvent) => void);` | optional, inherited |  |
| `onColumnReorder` | `onColumnReorder?: ((event: DataGridColumnReorderEvent) => void);` | optional, inherited |  |
| `grouping` | `grouping?: boolean \| DataGridGrouping<Child>;` | optional, inherited | `true` or settings: grouping UI and behavior. |
| `onBeforeGroupChange` | `onBeforeGroupChange?: ((event: DataGridGroupChangeEvent) => void);` | optional, inherited |  |
| `onGroupChange` | `onGroupChange?: ((event: DataGridGroupChangeEvent) => void);` | optional, inherited |  |
| `onBeforeGroupToggle` | `onBeforeGroupToggle?: ((event: DataGridGroupToggleEvent<Child>) => void);` | optional, inherited |  |
| `onGroupToggle` | `onGroupToggle?: ((event: DataGridGroupToggleEvent<Child>) => void);` | optional, inherited |  |
| `aggregates` | `aggregates?: readonly DataGridAggregateRow<Child>[];` | optional, inherited | Aggregate rows (or `<DataGridAggregateRow>` children). |
| `aggregateScope` | `aggregateScope?: "all" \| "page";` | optional, inherited | With paging: `page` (default) aggregates the current page, `all` every matching row. |
| `renderRow` | `renderRow?: ((ctx: DataGridRowContext<Child>) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((ctx: DataGridEmptyContext) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((ctx: DataGridDataErrorContext) => ReactNode);` | optional, inherited | Body content while the data source failed to load. Default: the error message and a Retry button. |
| `onViewChange` | `onViewChange?: ((event: DataGridViewChangeEvent) => void);` | optional, inherited | Once per committed change of the displayed rows; never on scroll, focus, selection, or expansion. |
| `getRowProps` | `getRowProps?: ((row: Child, rowIndex: number, ctx: { readonly tree?: DataGridTreeContext; }) => DataGridElementProps \| undefined);` | optional, inherited | Called for rendered rows only; `ctx.tree` in tree mode. |
| `rowClassName` | `rowClassName?: ((row: Child, rowIndex: number) => string \| undefined);` | optional, inherited |  |
| `getCellProps` | `getCellProps?: ((ctx: DataGridCellContext<Child>) => DataGridElementProps \| undefined);` | optional, inherited | Called for rendered cells only. |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<DataGridPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<DataGridPart, CSSProperties>>;` | optional, inherited |  |
| `icons` | `icons?: Partial<Record<DataGridIconName, ReactNode>>;` | optional, inherited | Icon overrides by name: a node replaces the built-in SVG icon, `null` hides it. Merges over an enclosing `DataGridIconsProvider`. A component prop, not a theme input. |
| `aria-label` | `aria-label?: string;` | optional, inherited |  |
| `aria-labelledby` | `aria-labelledby?: string;` | optional, inherited |  |
| `aria-describedby` | `aria-describedby?: string;` | optional, inherited |  |
| `onWarning` | `onWarning?: ((warning: DataGridWarning) => void);` | optional, inherited |  |
| `onReady` | `onReady?: ((api: DataGridApi<Child>) => void);` | optional, inherited | Fires once after the first commit with the instance. |
| `selection` | `selection?: boolean \| DataGridSelection;` | optional, inherited | Selection. On by default: single row selection. `false` turns it off. |
| `onBeforeSelectionChange` | `onBeforeSelectionChange?: ((event: DataGridSelectionChangeEvent<Child>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onSelectionChange` | `onSelectionChange?: ((event: DataGridSelectionChangeEvent<Child>) => void);` | optional, inherited |  |
| `keyBindings` | `keyBindings?: Readonly<Record<string, readonly string[]>>;` | optional, inherited | Replaces the combos of keyboard commands (`{ 'selection.selectAll': ['Mod+Shift+L'] }`). Reactive: a changed value (compared by value) rebuilds the keymap. |
| `onKeyDown` | `onKeyDown?: ((ctx: DataGridKeyDownContext) => void);` | optional, inherited | Called for every key pressed in the grid before the built-in binding runs. |
| `localeText` | `localeText?: DataGridLocaleText;` | optional, inherited | Text overrides over the English catalog (`DATA_GRID_DEFAULT_LOCALE_TEXT`): every visible and assistive string of the grid. Plain JSON with `{param}` templates and plural forms. Reactive. |
| `persistState` | `persistState?: boolean \| DataGridPersistState;` | optional, inherited | Saves the user's grid state (column order, widths, visibility, pinning, sorting, filters, grouping, page, search, selection, scroll) and restores it on mount. `true` uses `localStorage` under `salmon-data-grid:<id>` (set `id`); an object sets the key, storage, excluded parts, and an application version. Read on mount. |
