# GanttGridProps (@salmonui/gantt)

> The GanttGridProps type of @salmonui/gantt: Grid-pane props passed to the DataGrid unchanged (GGRID rows keep the Data Grid names).

Canonical: https://salmonui.dev/docs/reference/gantt/GanttGridProps

```ts
import type { GanttGridProps } from '@salmonui/gantt';
```

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

## Reference

Kind: type

```ts
type GanttGridProps<Row> = Pick<DataGridProps<Row>, 'sorting' | 'onBeforeSortChange' | 'onSortChange' | 'filtering' | 'onBeforeFilterChange' | 'onFilterChange' | 'search' | 'onBeforeSearchChange' | 'onSearchChange' | 'selection' | 'onBeforeSelectionChange' | 'onSelectionChange' | 'columnMenu' | 'renderContextMenu' | 'reorderable' | 'onBeforeColumnReorder' | 'onColumnReorder' | 'resizable' | 'resizeMode' | 'onColumnResizeStart' | 'onColumnResize' | 'onColumnResizeEnd' | 'columnChooser' | 'onBeforeColumnVisibilityChange' | 'onColumnVisibilityChange' | 'gridLines' | 'highlightOnHover' | 'striped' | 'textWrap' | 'overflow' | 'getRowProps' | 'getCellProps' | 'rowClassName' | 'renderEmpty' | 'loadingIndicator' | 'onViewChange' | 'onRowDoubleClick' | 'onRowClick' | 'onCellClick' | 'rowDrag' | 'onBeforeRowDrop' | 'onRowDrop' | 'onRowDragStart' | 'onRowDrag' | 'onBeforeTreeToggle' | 'onTreeToggle' | 'onBeforeEditStart' | 'onBeforeCellValueChange' | 'onBeforeSave' | 'onSave' | 'keyBindings' | 'onKeyDown' | 'virtualization' | 'initialRows' | 'currency' | 'icons' | 'features'>;
```

Grid-pane props passed to the `DataGrid` unchanged (GGRID rows keep the Data Grid names).

Members (57):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `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. |
| `columnChooser` | `columnChooser?: boolean \| DataGridColumnChooser<Row>;` | 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 |  |
| `onBeforeEditStart` | `onBeforeEditStart?: ((event: DataGridEditStartEvent<Row>) => void);` | optional, inherited |  |
| `onBeforeCellValueChange` | `onBeforeCellValueChange?: ((event: DataGridCellValueChangeEvent) => void);` | optional, inherited |  |
| `onBeforeSave` | `onBeforeSave?: ((event: DataGridSaveEvent<Row>) => void);` | optional, inherited |  |
| `onSave` | `onSave?: ((event: DataGridSaveEvent<Row>) => 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. |
| `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 |  |
| `onBeforeSearchChange` | `onBeforeSearchChange?: ((event: DataGridSearchChangeEvent) => void);` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((event: DataGridSearchChangeEvent) => 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<Row>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrag` | `onRowDrag?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited | Once per animation frame while dragging. |
| `onBeforeRowDrop` | `onBeforeRowDrop?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onRowDrop` | `onRowDrop?: ((event: DataGridRowDragEvent<Row>) => void);` | optional, inherited |  |
| `loadingIndicator` | `loadingIndicator?: "skeleton" \| "spinner";` | optional, inherited | Built-in loading indicator. Default `spinner`. |
| `onRowClick` | `onRowClick?: ((event: DataGridRowClickEvent<Row>) => void);` | optional, inherited | A data row was clicked. `preventDefault()` skips the built-in selection and focus. |
| `onRowDoubleClick` | `onRowDoubleClick?: ((event: DataGridRowClickEvent<Row>) => void);` | optional, inherited | A data row was double-clicked. `preventDefault()` skips the built-in edit start. |
| `onCellClick` | `onCellClick?: ((event: DataGridCellClickEvent<Row>) => void);` | optional, inherited | A cell of a data row was clicked; fires before `onRowClick`. |
| `onBeforeTreeToggle` | `onBeforeTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void);` | optional, inherited |  |
| `onTreeToggle` | `onTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void);` | optional, inherited |  |
| `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. |
| `currency` | `currency?: string;` | optional, inherited |  |
| `virtualization` | `virtualization?: boolean \| DataGridVirtualization;` | optional, inherited | Row and column virtualization; `true` (default) for the defaults, `false` renders every row and column. |
| `initialRows` | `initialRows?: number;` | optional, inherited | Rows 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 |  |
| `renderEmpty` | `renderEmpty?: ((ctx: DataGridEmptyContext) => ReactNode);` | optional, inherited |  |
| `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: Row, rowIndex: number, ctx: { readonly tree?: DataGridTreeContext; }) => DataGridElementProps \| undefined);` | optional, inherited | Called for rendered rows only; `ctx.tree` in tree mode. |
| `rowClassName` | `rowClassName?: ((row: Row, rowIndex: number) => string \| undefined);` | optional, inherited |  |
| `getCellProps` | `getCellProps?: ((ctx: DataGridCellContext<Row>) => DataGridElementProps \| undefined);` | optional, inherited | Called for rendered cells only. |
| `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. |
| `selection` | `selection?: boolean \| DataGridSelection;` | optional, inherited | Selection. On by default: single row selection. `false` turns it off. |
| `onBeforeSelectionChange` | `onBeforeSelectionChange?: ((event: DataGridSelectionChangeEvent<Row>) => void);` | optional, inherited | Cancel with `event.preventDefault()`. |
| `onSelectionChange` | `onSelectionChange?: ((event: DataGridSelectionChangeEvent<Row>) => 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. |
