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 preFilter option to filter options when building multiselect #675

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

Conversation

kielni
Copy link

@kielni kielni commented Dec 16, 2015

I need to draw the multiselect with a filter already applied (for example, from query parameters). I didn't see a way to do that right now. This change checks options.preFilter, and if set applies filters to options when building the multiselect.

Please take a look and let me know if this makes sense.

set options.preFilter to filter options when building multiselect
to support programmatic filtering: `$(selectId).multiselect('runFilter', 'text');`
@davidstutz
Copy link
Owner

Definitely a useful option. However, this can't be merged automatically anymore and there are also some other filter-related PRs. So I will try to integrate it manually.

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

Successfully merging this pull request may close these issues.

2 participants