fast
fast copied to clipboard
feat: add data grid row selection
📖 Description
Data grid currently does not have any notion of selection built-in, this change adds that functionality for row selection.

✅ Checklist
General
- [x] I have included a change request file using
$ yarn change - [x] I have added tests for my changes.
- [x] I have tested my changes.
- [x] I have updated the project documentation to reflect my changes.
- [x] I have read the CONTRIBUTING documentation and followed the standards for this project.
Component-specific
- [ ] I have added a new component
- [x] I have modified an existing component
- [x] I have updated the definition file
- [x] I have updated the configuration file
⏭ Next Steps
Add cell selection.
@scomea Ready for more reviews?
@scomea Ready for more reviews?
Yes, please.
Revised the "unselectable rows" api to be a callback fn rather than an array, seems more flexible.
@scomea There were some breaking changes in fast-element which required me to update the grid. Apologies if this messes up your selection work! Let me know if you have any questions otherwise I'll just wait for a ping from you to review this PR once it's updated to latest. Thanks!
Looking forward to this feature!!!
It would be great if select would be done by "left column" checkbox. Like this, it is not possible to select the column if the cell value is a href link to something.
It would be great if select would be done by "left column" checkbox. Like this, it is not possible to select the column if the cell value is a href link to something.
That's what the disable-click-select attribute is for. When that is true the row will not auto select on click and an author could wire up a custom cell with a checkbox wired up to the row's selected state. I'll see about adding a story for that.
Cannot wait to apply this amazing feature!😍😍😍