react-spreadsheet icon indicating copy to clipboard operation
react-spreadsheet copied to clipboard

Programatically select/unselect cells

Open mgodf opened this issue 5 years ago • 3 comments

Is there some way to programatically set the cell selection?

Thank you!

mgodf avatar Nov 10 '20 17:11 mgodf

Hey, thank you for trying React Spreadsheet. Currently no, but I can make it happen. Would you like me to try?

iddan avatar Nov 14 '20 00:11 iddan

Quick update on that: with the progress made in #161 I think selection is going to be more sophisticated than an array of points (as it used to be until now). I think this feature is better be implemented after a breaking change that would change onSelect to receive Selection and it can introduce a new prop called selected that accepts Selection

iddan avatar Sep 20 '21 21:09 iddan

Another update: now that #161 is merged we can go ahead to make the breaking change that onSelect receives Selection and introduce a new selected prop. Might require improving the implementation of the Selection data type for better API to the consumer.

iddan avatar Apr 08 '22 17:04 iddan