Replies: 10 comments 3 replies
-
We could definitely use something like this at our company. I'd love to help out building this in whatever way necessary. |
Beta Was this translation helpful? Give feedback.
-
Update: @israelidanny @tannerlinsley - This PR is merged in react-table-plugins 🎉 Check Documentation and codesandbox Let me know, what do you think and if it's a good addition here, will raise a PR |
Beta Was this translation helpful? Give feedback.
-
I would like to see this integrated with v8 (the |
Beta Was this translation helpful? Give feedback.
-
Sure, I will have a look at the new architecture and will try to implement it there. |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley If you have time, Can you please look at the implementation and can review the code? So that we are following the right direction: Code link, |
Beta Was this translation helpful? Give feedback.
-
This looks awesome. And yes, the architecture looks pretty good. Things might change a little bit with v8, so I'll keep you posted. |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley @07harish I think default click cell selection will be more convenient to select single cell instead of doing ctrl+click and also is there any plans for shift click selection between two cells? |
Beta Was this translation helpful? Give feedback.
-
@07harish this plugin is not support typescript? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to port this to React Table v8. What would be the best place? |
Beta Was this translation helpful? Give feedback.
-
Ended up writing my own hook in the end. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Multi-cell range selection and single-cell select feature
Hi @tannerlinsley, Implemented this new hook, Will this be a good addition to the library?
@gargroh helped me to come up with this idea.
Usage:
Ctrl + range selection (click and drag)
. First range selection can be done withoutCtrl
Ctrl + click
Compatibility:
This feature works well with
useColumnOrder
. WithuseGroupBy
, it selects all cells within the range (including empty cells when expanded)Few details on the implementation:
state.selectedCells
Is a map ofcell.id = true
, Same asselectedRowIds
instance.cellsById
, actions forstart, selecting, end
on aninstance
Few things I have not considered adding (will work on it, if this is required):
state.selectedCells : {cell.id : count, ...}
I am new to contributing to open source, Need your thoughts and feedback.
If this looks good, I have some refactoring left and I will create a PR.. Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions