Comments (10)
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.
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.
How do you invision that working in the context of an autocompletor?
from bootstrap-combobox.
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.
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.
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.
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.
Given the relative simplicity of this feature going to add it to the to do list for the 2.0 release.
from bootstrap-combobox.
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.
@themartianmw By "optgroup feature", what are you looking for?
from bootstrap-combobox.
Related Issues (20)
- If select has HTML5 Required attribute, form is not submitting. HOT 2
- Keep a menu open unless clicked outside
- Unable to select the options with space appended at the end HOT 8
- The typed by user value disappear after moving focus to different element HOT 3
- Update the README HOT 3
- Uncaught TypeError: Cannot read property 'setAttribute' of null HOT 5
- Options examples
- Publish 1.2.0 updates HOT 2
- Two conflicting change events triggered upon clicking on a filtered option
- Change Event Fires Multiple time HOT 1
- Remove glyphicon not shown when using with jQuery 3.5.1 HOT 3
- Up and down arrow keys not working with Bootstrap 4 HOT 1
- Empty value in the combobox is encountering an exception HOT 5
- Modifications to work with Bootstrap 4.6
- Adding a delay
- I have a problem when i make a clone of the combobox
- How to trigger an input change event when clearIfNoMatch is set to false
- Make it a real combo box
- Bootstrap 5 Floating Label - additional feature
- Destroy combobox or update options?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-combobox.