bootstrap-combobox icon indicating copy to clipboard operation
bootstrap-combobox copied to clipboard

Optgroup support

Open jeffubelhor opened this issue 11 years ago • 10 comments

I would love to see some support for in the drop down list. Maybe this already exists and I don't know how to use them, but I've been having trouble getting it working.

jeffubelhor avatar Apr 05 '13 00:04 jeffubelhor

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.

danielfarrell avatar Apr 05 '13 01:04 danielfarrell

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.

jeffubelhor avatar Apr 05 '13 12:04 jeffubelhor

How do you invision that working in the context of an autocompletor?

danielfarrell avatar Apr 05 '13 12:04 danielfarrell

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.

jeffubelhor avatar Apr 05 '13 12:04 jeffubelhor

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.

danielfarrell avatar Apr 05 '13 12:04 danielfarrell

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.

jeffubelhor avatar Apr 05 '13 14:04 jeffubelhor

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

thephw avatar May 13 '14 21:05 thephw

Given the relative simplicity of this feature going to add it to the to do list for the 2.0 release.

thephw avatar May 13 '14 21:05 thephw

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 avatar Oct 03 '18 12:10 themartianmw

@themartianmw By "optgroup feature", what are you looking for?

tiesont avatar Oct 04 '18 03:10 tiesont