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

A way to know which components are pre-selected

Open andrefox333 opened this issue 9 years ago • 1 comments

Question, is there an event or a way to know which components are being pre-selected during the drag and select process?

andrefox333 avatar Oct 11 '16 16:10 andrefox333

You mean like the way desktop apps work, where the items take on a new UI state as the box is being defined? No, because I assume it's a massive performance hit, however, it may be a really easy change.

If you're keen to have a play with it, I think all you'd have to do is add this.selectElements(e) (as seen in the _mouseup function) to the _openSelector function.

Have a play with that, and see how it works for you. If it ends up working out without any major tradeoffs, I'd welcome a PR that permitted that behaviour as a prop on the group.

unclecheese avatar Oct 13 '16 02:10 unclecheese