SelectionMode
Selection mode for the grid.
Each mode offers different selection behavior suited to different use cases:
| Mode | Use Case | Behavior |
|---|---|---|
'cell' | Spreadsheet-style editing | Single cell focus. Click to select one cell at a time. |
'row' | Record-based operations | Full row selection. Click anywhere to select the entire row. |
'range' | Bulk operations, export | Rectangular selection. Drag or Shift+Click to select ranges. |
type SelectionMode = "cell" | "row" | "range"Example
Section titled “Example”// Cell mode (default) - for spreadsheet-like interactionnew SelectionPlugin({ mode: 'cell' })
// Row mode - for selecting complete recordsnew SelectionPlugin({ mode: 'row' })
// Range mode - for bulk copy/paste operationsnew SelectionPlugin({ mode: 'range' })See Also
Section titled “See Also”- Cell Mode Demo - Click cells to select
- Row Mode Demo - Full row selection
- Range Mode Demo - Drag to select ranges
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt