bootstrap-combobox
bootstrap-combobox copied to clipboard
Optgroup support
I would love to see some support for
It does not exist at the moment. How do you envision it working? And what is a good use case for using optgroup? I'll admit to never seeing the point of them.
I'm looking into methods of implementing it now. And I think they're incredibly useful. I've used them in the past for filtering though dropdown lists by categories and by using them to section the elements into easy groups with a title in the dropdown list.
How do you invision that working in the context of an autocompletor?
I'm not absolutely positive right now, at least for me I would be using it just as a section identifier and not as something to filter by, but that's just in my own personal case right now.
Gotchya. The only thought I had in that manner was something like so:
Group Name – Item Name
Group Name – Second Item
And then on selection you just get the second part. That would let you type the group name and see everything in it.
For me, I've more used optgroups as only a header like:
optgroup
- option
- option
optgroup
- option
- option
Where the optgroup is not selectable or searchable, but is just a header for the categories.
This is pretty easy to stylistically change with the new version of bootstrap. However I'm not sure that it is going to happen until we drop 2.X support.
http://www.w3schools.com/tags/tag_optgroup.asp
Given the relative simplicity of this feature going to add it to the to do list for the 2.0 release.
Hi @thephw I want to use the bootstrap-combobox in my project, but I really need the optgroup feature. Can you give me a hint of how could I edit the code to achieve it? Thanks in advance.
@themartianmw By "optgroup feature", what are you looking for?