react-selectable-fast
react-selectable-fast copied to clipboard
Add methods to select / deselect by predicate
Hi, thank you for developing the cool package.
This PR adds two methods: selectItemsByPredicate
and deselectItemsByPredicate
to control selection from js interface (not by user manipulation). This may be useful to implement "selected by default" for example (#84).
I'm not sure that the interface is excellent (selectItems (items: Array<TSelectableItem>)
might be another option I think) but anyways this kind of feature is nice to have IMO.
Thank you.
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/skymk1/react-selectable-fast/4qxh7l70e ✅ Preview: https://react-selectab-git-fork-zk-phi-add-methods-to-select-by-127904.skymk1.now.sh
Looks like a very nice feature. Wonder why the delay in merging.