If maxColumnWidth is set with a value greater than 50, then columns will have a maximum size of that many pixels. If the value is less than 50, it will be increased to 50. If it isn't set, the default value will be 500.
maxColumnAutoWidth
maxColumnAutoWidth?: number;
Sets the maximum width that a column can be auto-sized to. Defaults to maxColumnWidth.
onCellClicked
onCellClicked?: (cell:Item) =>void;
onCellClicked is called whenever the user clicks a cell in the grid.
onCellActivated
onCellActivated?: (cell:Item) =>void;
onCellActivated is called whenever the user double clicks, taps Enter, or taps Space on a cell in the grid.
onColumnMoved is called when the user finishes moving a column. startIndex is the index of the column that was moved, and endIndex is the index at which it should end up. Note that you have to effect the move of the column, and pass the reordered columns back in the columns property.
onColumnResize is called when the user is resizing a column. newSize is the new size of the column. Note that you have change the size of the column in the GridColumn and pass it back to the grid in the columns property. onColumnReizeEnd is called with the same arguments, but only once the user ceases interaction with the resize handle.
onHeaderMenuClick is called when the user clicks the menu button on a column header. col is the column index, and screenPosition is the bounds of the column header. You are responsible for drawing and handling the menu.
onItemHovered
onItemHovered?: (args:GridMouseEventArgs) =>void;
onItemHovered is called when the user hovers over a cell, a header, or outside the grid.
onMouseMove
onMouseMove?: (args:GridMouseEventArgs) =>void;
Emitted any time the mouse moves. Most behaviors relying on this should be debounced for performance reasons.
Called whenever a row re-order operation is completed. Setting the callback enables re-ordering by dragging the first column of a row.
preventDiagonalScrolling
preventDiagonalScrolling?: booling;
Set to true to prevent any diagonal scrolling.
rowSelectionMode
rowSelectionMode?:"auto"|"multi";
rowSelectionMode changes how selecting a row marker behaves. In auto mode it adapts to touch or mouse environments automatically, in multi-mode it always acts as if the multi key (Ctrl) is pressed.