Skip to content

optgroup for select #214

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

Closed
jmverges opened this issue May 30, 2017 · 4 comments
Closed

optgroup for select #214

jmverges opened this issue May 30, 2017 · 4 comments

Comments

@jmverges
Copy link
Contributor

Hi guys,

what do you think about having the possibility to have optgroup in a select field?

Cheers

@dflock
Copy link
Collaborator

dflock commented May 31, 2017

Sounds like a good idea - it's a supported feature in (at least) HTML 4 & 5 selects, so i would be in favour of supporting it.

The changes to the schema and the template of the select component would be pretty similar to the changes for the Grouping feature (#209) - which I'm sure you're aware, as you wrote a lot of it ;)

@icebob
Copy link
Member

icebob commented May 31, 2017

I support it. PR welcome :)

@icebob icebob added this to the v2.1.0 milestone Jun 2, 2017
@amans2k
Copy link

amans2k commented Sep 19, 2018

Hello Guys,

First of all a great library. Using it, in most projects.
One thing came across today, where I need to use optgroup in select.
Then found this issue.
Can anyone share the jsfiddle example of select with optgroup?

Thanks in advance.

@zoul0813
Copy link
Member

Closing - optgroup was implemented at an unknown point in time.

{
  type: "select",
  values: [
    {
      "name": "foo",
      "id": "bar",
      "group": "Foobar"
    },
    {
      "name": "Bar",
      "id": "foo",
      "group": "Bar"
    }
  ]
}

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

5 participants