API reference: @salmonui/gantt
GanttGridPropstype
import type { GanttGridProps } from '@salmonui/gantt';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).
| Name | Signature | Description |
|---|---|---|
columnMenuoptionalinherited | columnMenu?: boolean | readonly (DataGridMenuItem | DataGridColumnMenuItemId)[]; | Column menu; an array lists the items in order (built-in ids or custom items). |
columnChooseroptionalinherited | columnChooser?: boolean | DataGridColumnChooser<Row>; | |
renderContextMenuoptionalinherited | renderContextMenu?: ((ctx: DataGridContextMenuContext) => ReactNode); | |
onColumnResizeStartoptionalinherited | onColumnResizeStart?: ((event: DataGridColumnResizeEvent) => void); | |
onColumnResizeoptionalinherited | onColumnResize?: ((event: DataGridColumnResizeEvent) => void); | |
onColumnResizeEndoptionalinherited | onColumnResizeEnd?: ((event: DataGridColumnResizeEvent) => void); | |
onBeforeEditStartoptionalinherited | onBeforeEditStart?: ((event: DataGridEditStartEvent<Row>) => void); | |
onBeforeCellValueChangeoptionalinherited | onBeforeCellValueChange?: ((event: DataGridCellValueChangeEvent) => void); | |
onBeforeSaveoptionalinherited | onBeforeSave?: ((event: DataGridSaveEvent<Row>) => void); | |
onSaveoptionalinherited | onSave?: ((event: DataGridSaveEvent<Row>) => void); | |
sortingoptionalinherited | sorting?: boolean | DataGridSorting; |
|
filteringoptionalinherited | filtering?: boolean | DataGridFiltering; |
|
searchoptionalinherited | search?: boolean | DataGridSearch; |
|
onBeforeSortChangeoptionalinherited | onBeforeSortChange?: ((event: DataGridSortChangeEvent) => void); | |
onSortChangeoptionalinherited | onSortChange?: ((event: DataGridSortChangeEvent) => void); | |
onBeforeFilterChangeoptionalinherited | onBeforeFilterChange?: ((event: DataGridFilterChangeEvent) => void); | |
onFilterChangeoptionalinherited | onFilterChange?: ((event: DataGridFilterChangeEvent) => void); | |
onBeforeSearchChangeoptionalinherited | onBeforeSearchChange?: ((event: DataGridSearchChangeEvent) => void); | |
onSearchChangeoptionalinherited | onSearchChange?: ((event: DataGridSearchChangeEvent) => void); | |
rowDragoptionalinherited | rowDrag?: boolean | DataGridRowDrag; | Row drag and drop with a drag handle column; |
onRowDragStartoptionalinherited | onRowDragStart?: ((event: DataGridRowDragEvent<Row>) => void); | Cancel with |
onRowDragoptionalinherited | onRowDrag?: ((event: DataGridRowDragEvent<Row>) => void); | Once per animation frame while dragging. |
onBeforeRowDropoptionalinherited | onBeforeRowDrop?: ((event: DataGridRowDragEvent<Row>) => void); | Cancel with |
onRowDropoptionalinherited | onRowDrop?: ((event: DataGridRowDragEvent<Row>) => void); | |
loadingIndicatoroptionalinherited | loadingIndicator?: "skeleton" | "spinner"; | Built-in loading indicator. Default |
onRowClickoptionalinherited | onRowClick?: ((event: DataGridRowClickEvent<Row>) => void); | A data row was clicked. |
onRowDoubleClickoptionalinherited | onRowDoubleClick?: ((event: DataGridRowClickEvent<Row>) => void); | A data row was double-clicked. |
onCellClickoptionalinherited | onCellClick?: ((event: DataGridCellClickEvent<Row>) => void); | A cell of a data row was clicked; fires before |
onBeforeTreeToggleoptionalinherited | onBeforeTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void); | |
onTreeToggleoptionalinherited | onTreeToggle?: ((event: DataGridTreeToggleEvent<Row>) => void); | |
featuresoptionalinherited | features?: readonly DataGridFeature[]; | Salmon. Render features to use
synchronously, from |
currencyoptionalinherited | currency?: string; | |
virtualizationoptionalinherited | virtualization?: boolean | DataGridVirtualization; | Row and column virtualization; |
initialRowsoptionalinherited | initialRows?: number; | Rows in the deterministic server/initial range. Default 20. |
textWrapoptionalinherited | textWrap?: DataGridTextWrap; | |
gridLinesoptionalinherited | gridLines?: DataGridLines; | |
overflowoptionalinherited | overflow?: DataGridOverflow; | Default text overflow of every column. Default |
highlightOnHoveroptionalinherited | highlightOnHover?: boolean; | Row hover highlight. Default true. |
stripedoptionalinherited | striped?: boolean; | Alternate row shading. Default true. |
resizableoptionalinherited | resizable?: boolean; | Pointer and keyboard column resize. Default false; column |
resizeModeoptionalinherited | resizeMode?: "auto" | "normal"; | Column fit. |
reorderableoptionalinherited | reorderable?: boolean; | Pointer and keyboard column reorder. Default false; column |
onBeforeColumnVisibilityChangeoptionalinherited | onBeforeColumnVisibilityChange?: ((event: DataGridColumnVisibilityChangeEvent) => void); | |
onColumnVisibilityChangeoptionalinherited | onColumnVisibilityChange?: ((event: DataGridColumnVisibilityChangeEvent) => void); | |
onBeforeColumnReorderoptionalinherited | onBeforeColumnReorder?: ((event: DataGridColumnReorderEvent) => void); | |
onColumnReorderoptionalinherited | onColumnReorder?: ((event: DataGridColumnReorderEvent) => void); | |
renderEmptyoptionalinherited | renderEmpty?: ((ctx: DataGridEmptyContext) => ReactNode); | |
onViewChangeoptionalinherited | onViewChange?: ((event: DataGridViewChangeEvent) => void); | Once per committed change of the displayed rows; never on scroll, focus, selection, or expansion. |
getRowPropsoptionalinherited | getRowProps?: ((row: Row, rowIndex: number, ctx: { readonly tree?: DataGridTreeContext; }) => DataGridElementProps | undefined); | Called for rendered rows only; |
rowClassNameoptionalinherited | rowClassName?: ((row: Row, rowIndex: number) => string | undefined); | |
getCellPropsoptionalinherited | getCellProps?: ((ctx: DataGridCellContext<Row>) => DataGridElementProps | undefined); | Called for rendered cells only. |
iconsoptionalinherited | icons?: Partial<Record<DataGridIconName, ReactNode>>; | Icon overrides by name:
a node replaces the built-in SVG icon, |
selectionoptionalinherited | selection?: boolean | DataGridSelection; | Selection. On by default: single row selection. |
onBeforeSelectionChangeoptionalinherited | onBeforeSelectionChange?: ((event: DataGridSelectionChangeEvent<Row>) => void); | Cancel with |
onSelectionChangeoptionalinherited | onSelectionChange?: ((event: DataGridSelectionChangeEvent<Row>) => void); | |
keyBindingsoptionalinherited | keyBindings?: Readonly<Record<string, readonly string[]>>; | Replaces the combos of keyboard commands ( |
onKeyDownoptionalinherited | onKeyDown?: ((ctx: DataGridKeyDownContext) => void); | Called for every key pressed in the grid before the built-in binding runs. |