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

Add methods to select / deselect by predicate

Open zk-phi opened this issue 4 years ago • 2 comments

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.

zk-phi avatar Jun 01 '20 09:06 zk-phi

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

vercel[bot] avatar Jun 01 '20 09:06 vercel[bot]

Looks like a very nice feature. Wonder why the delay in merging.

heri16 avatar Jan 29 '21 03:01 heri16