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

Adding Option To Allow Pushing Selected Items To The Top of Items #241

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

Conversation

SamJbori
Copy link

@SamJbori SamJbori commented Jan 3, 2024

While using the component with large list (5000+), it felt much easier if I can see the selected items first, epically if I am using
visibleSelectedItem={false}, so I added an optional selectedToTop Boolean property that will trigger this behavior.

simply it will filter the data twice and using the checkSelected() method

Media_240103_133343

I tested the speed and it's just fine

I hope you like it and approve, I've started programming few months ago and this is my first contribution, I hope it's of some value.

Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
Added support to selectedToTop
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

1 participant