Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods to select / deselect by predicate #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add methods to select / deselect by predicate #86

wants to merge 3 commits into from

Conversation

zk-phi
Copy link

@zk-phi zk-phi commented Jun 1, 2020

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.

@vercel
Copy link

vercel bot commented Jun 1, 2020

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

@heri16
Copy link

heri16 commented Jan 29, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants