API reference: @salmonui/data-grid
DataGridDataUiPropsinterface
import type { DataGridDataUiProps } from '@salmonui/data-grid';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.
| Name | Signature | Description |
|---|---|---|
loadingIndicatoroptional | loadingIndicator?: 'spinner' | 'skeleton'; | Built-in loading indicator. Default |
renderLoadingoptional | renderLoading?: (ctx: DataGridLoadingContext) => ReactNode; | Replaces the content of the loading indicator (presentational: the grid announces loading itself). |
onRowClickoptional | onRowClick?: (event: DataGridRowClickEvent<Row>) => void; | A data row was clicked. |
onRowDoubleClickoptional | onRowDoubleClick?: (event: DataGridRowClickEvent<Row>) => void; | A data row was double-clicked. |
onCellClickoptional | onCellClick?: (event: DataGridCellClickEvent<Row>) => void; | A cell of a data row was clicked; fires before |
onCellDoubleClickoptional | onCellDoubleClick?: (event: DataGridCellClickEvent<Row>) => void; | A cell of a data row was double-clicked; fires before |
recordCommandsoptional | recordCommands?: boolean; | Keeps a serializable log of applied commands ( |
instrumentoptional | instrument?: boolean; | Exposes store counters ( |