Code Monkey home page Code Monkey logo

Comments (10)

danielfarrell avatar danielfarrell commented on June 25, 2024

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.

from bootstrap-combobox.

jeffubelhor avatar jeffubelhor commented on June 25, 2024

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.

from bootstrap-combobox.

danielfarrell avatar danielfarrell commented on June 25, 2024

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

from bootstrap-combobox.

jeffubelhor avatar jeffubelhor commented on June 25, 2024

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.

from bootstrap-combobox.

danielfarrell avatar danielfarrell commented on June 25, 2024

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.

from bootstrap-combobox.

jeffubelhor avatar jeffubelhor commented on June 25, 2024

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.

from bootstrap-combobox.

thephw avatar thephw commented on June 25, 2024

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

from bootstrap-combobox.

thephw avatar thephw commented on June 25, 2024

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

from bootstrap-combobox.

themartianmw avatar themartianmw commented on June 25, 2024

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.

from bootstrap-combobox.

tiesont avatar tiesont commented on June 25, 2024

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

from bootstrap-combobox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.