Skip to content

Option Groups for select controls #813

@joeworkman

Description

@joeworkman

I would like to have a better way to organize options for a select control into groups. Something link the HTML optgroup would be great.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup

Right now we can add dividers using - as the value in the option. What if the syntax was updated like this...

<dict>
<key>title</key>
<string>-</string>
<key>value</key>
<string>-</string>
</dict>

<dict>
<key>title</key>
<string>Option Group Label</string>
<key>value</key>
<string>-</string>
</dict>

The first example would be the simple divider. However, if a Title is provided, then instead of a divider it's an option group.

I know that you shot me down on slack for this idea. I thought maybe I would have better luck with you on drugs... ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions