Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support <optgroup> #35

Open
kAlvaro opened this issue Sep 12, 2014 · 3 comments
Open

Support <optgroup> #35

kAlvaro opened this issue Sep 12, 2014 · 3 comments
Assignees

Comments

@kAlvaro
Copy link

kAlvaro commented Sep 12, 2014

Currently, selects are expected to be flat. There's no JSON syntax or code to handle <optgroup> tags.

The label attribute is mandatory so that should simplify the syntax.

In case it helps, here's a quick idea (probably absurd because I'm actually not very familiar with the plug-in):

["": "None"],
[
    {
        Asia": [
            ["cn","China"],
            ["jp","Japan"]
        ],
    }
],
[
    {
        "Europe": [
            ["fr", "France"]
            ["es", "Spain"],
        ],
    }
],
["zz": "Other"],
["--": "Don't know"]
@tuupola tuupola added the 2.0 label Sep 27, 2014
@tuupola tuupola self-assigned this Sep 27, 2014
@tuupola tuupola added the feature label Mar 2, 2015
@Aeon
Copy link

Aeon commented Mar 3, 2015

+1!!!

@federicodv
Copy link

+1 !

@kAlvaro
Copy link
Author

kAlvaro commented Apr 18, 2016

I remind you you can add a Thumbs up icon to any entry in issue tracker, there's no need to flood the ticket with "+1" comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants