-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Support custom filtering #2042
Comments
@devjerry commented on May 29, 2018, 2:26 AM UTC: I'm in similar need. In addition to setting Something similar as https://select2.org/searching Example:Let's say I have following selectbox:
After typing $('.selectpicker').selectpicker({
liveSearchStyle: function(searchTerm, item) {
return searchTerm.toLowerCase().split(' ').every(function(word) {
return item.toLowerCase().indexOf(word) !== -1;
});
}
}); In the example |
* Allow to use function as liveSearchStyle Fix #2042
This change will be a part of the v1.14.0 release. This issue will be updated after it's made available. |
* Allow to use function as liveSearchStyle Fix #2042
Released in v1.14.0-beta! |
@yoeriboven commented on May 7, 2018, 10:40 AM UTC:
It might be a good idea to let the user do the filtering. Currently I'm working on a project in which I want the search to be done in the value of the option or in the text with startsWith as the option.
This could be done like this:
Any suggestions?
This issue was moved by caseyjhol from snapappointments/bootstrap-select-temp#56.
The text was updated successfully, but these errors were encountered: