You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2020. It is now read-only.
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:
$('.selectpicker').on('typed.bs.select', function (input) {
// Filter results here
return results; // Array of results
});
Any suggestions?
The text was updated successfully, but these errors were encountered:
<selectclass="selectpicker" data-live-search="true"><optionvalue="1">Paris - Black office</option><optionvalue="2">Paris - Red office</option><optionvalue="3">London - Black office</option><optionvalue="4">London - Red office</option></select>
After typing don bla I would like to have London - Black office in search results. So I would write my custom filtering function like this:
In the example item parameter represented current text of <option>. I would imagine it could be an object containing different parameters of current item in iteration (e.g. it's index, <option> text, <option> value, if it's inside <optgroup>, ...).
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?
The text was updated successfully, but these errors were encountered: