# DataGridDataUiProps (@salmonui/data-grid)

> The DataGridDataUiProps interface of @salmonui/data-grid: DataGrid props of the data-state UI, the click events, and the engine dev tooling.

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

```ts
import type { DataGridDataUiProps } 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 DataGridDataUiProps<Row> {
    loadingIndicator?: 'spinner' | 'skeleton';
    renderLoading?: (ctx: DataGridLoadingContext) => ReactNode;
    onRowClick?: (event: DataGridRowClickEvent<Row>) => void;
    onRowDoubleClick?: (event: DataGridRowClickEvent<Row>) => void;
    onCellClick?: (event: DataGridCellClickEvent<Row>) => void;
    onCellDoubleClick?: (event: DataGridCellClickEvent<Row>) => void;
    recordCommands?: boolean;
    instrument?: boolean;
}
```

`DataGrid` props of the data-state UI, the click events, and the engine dev tooling.

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `loadingIndicator` | `loadingIndicator?: 'spinner' \| 'skeleton';` | optional | Built-in loading indicator. Default `spinner`. |
| `renderLoading` | `renderLoading?: (ctx: DataGridLoadingContext) => ReactNode;` | optional | Replaces the content of the loading indicator (presentational: the grid announces loading itself). |
| `onRowClick` | `onRowClick?: (event: DataGridRowClickEvent<Row>) => void;` | optional | A data row was clicked. `preventDefault()` skips the built-in selection and focus. |
| `onRowDoubleClick` | `onRowDoubleClick?: (event: DataGridRowClickEvent<Row>) => void;` | optional | A data row was double-clicked. `preventDefault()` skips the built-in edit start. |
| `onCellClick` | `onCellClick?: (event: DataGridCellClickEvent<Row>) => void;` | optional | A cell of a data row was clicked; fires before `onRowClick`. |
| `onCellDoubleClick` | `onCellDoubleClick?: (event: DataGridCellClickEvent<Row>) => void;` | optional | A cell of a data row was double-clicked; fires before `onRowDoubleClick`. |
| `recordCommands` | `recordCommands?: boolean;` | optional | Keeps a serializable log of applied commands (`api.engine.getCommandLog()`). Initial only. Default false. |
| `instrument` | `instrument?: boolean;` | optional | Exposes store counters (`api.engine.getInstrumentation()`). Initial only. Default false. |
