Ajax-Bootstrap-Select
Ajax-Bootstrap-Select copied to clipboard
Add optgroup support
I am interested in this feature too!
I was looking for the same feature in this plugin to have options displayed along with the optgroup tag to sort in groups. I was wondering if this feature would be included any time soon? Thanks
@markcarver @truckingsim I made some changes in the plugin code and now it locally works for the different categories to have an
If you found a way to do this without changing the data structure I'm open to that (i.e nesting levels). My worry with supporting this is how to do without changing the nesting levels or if we do change the structure then we need to do a major release.
I initially changed the data structure to implement 'optgroup' but as you suggested trying nesting the levels, I managed to have a workaround and it worked fine using the same. It needed a couple of changes only.
feel free to open a pr i'll look it over
Awesome, before I could create a PR, @truckingsim I had one question, when I am trying to load the dropdown options using ajax, my options are getting displayed but I am unable to do the live search. Could you please check if my code misses any key parameters that hinder live search.
When I change the class from selectpicker to bootstrap-select, it works as expected.
`
<select class="selectpicker" multiple data-selected-text-format="count" data-actions-box="true" data-live-search="true" data-show-tick="false" data-live-search-style="contains">
</select>
Is there any update on this? I would love to have this feature...
Me too!