truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

Feature for optgroups #178

Closed pimduijst closed 4 years ago

pimduijst commented 4 years ago

Hi,

I would like to know if I am missing a feature in the docs or that it is not available yet. Would it be possible to also show returned data in an optgroup?

Something like this:

<optgroup label="Client A">
<option value="location_id">Location Foo</option>
<option value="some_location_id">Location Bar</option>
<option value="another_location_id">Location Foobar</option>
</optgroup>`
<optgroup label="Client B">
<option value="location_id">Location Foo</option>
<option value="some_location_id">Location Bar</option>
<option value="another_location_id">Location Foobar</option>
</optgroup>`
markhalliwell commented 4 years ago

Dup of #31