Is there a way to mockup optgroup dropdowns?


#1

Basically, is it possible to mockup optgroup dropdowns using the existing combo box control, or could this be added at some point?

An example of what I mean is this TryItNow example http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup

Essentially, section headings within a dropdown. An option to do this within the existing Combo Box control doesn’t jump out at me, although I have been able to provide an example by adding my own spaces, etc.

Love the new system and the site. I had a look through the forum before posting, and searched for option group and optgroup, but didn’t see anything that seemed to be asking the same question. The search seemed pretty good, but I’m sorry if this has been asked already and I missed it.


#2

Hey @LordScree, thanks so much for the kind words! They mean the world to us :smiley:

I don’t think this question has been asked before, so if it has, we both missed it.

While there isn’t a property or setting that you could use to define optgroups, you should be able to achieve the same look using our text formatting (more information on that here: https://docs.balsamiq.com/desktop/text/). This may be more or less what you were doing, but I’ll toss it up here in case it is useful for anyone else.

To achieve a combo box like this:

You would use these formatting options:

The text field will respect spaces that precede words, so you can use that to indent an item.

Are you looking for it to do something different visually, or was that the look you were looking for?

Let me know if that is closer to what you were looking for. If not, let’s see if we can’t refine it a bit more.