More fine-grained control on column/row selection behaviour
See original GitHub issueGlide-data-grid has very good support for column, row, and cell selection. However, it gets a bit complicated if certain selection aspects need to be deactivated. For example, the column selection can be fully deactivated via:
selectedColumns={CompactSelection.empty()}
onSelectedColumnsChange={() => {}}
However, the cursor will still show click behavior even though there is nothing to select anymore. Also, deactivation of multi/range-selection of columns or rows could be theoretically achieved by a custom implementation… but it might get a bit complicated to determine the actual cell the user clicked on for enforcing a proper single row/column only selection. A solution might be to have a configuration similar to rowMarkers
- e.g.: columnSelectionMode?: "single" | "multi" | "none"
- that manages the selection behaviour internally.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Yes that is their purpose. It still doesn’t let you prevent range selection but I will fix that prior to launch of 4.0
Awesome, thanks!