{"action":"created","issue":{"url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/39","labels_url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/39/comments","events_url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/39/events","html_url":"https://github.com/adrianhurt/play-bootstrap3/issues/39","id":106776339,"number":39,"title":"Please add support for optgroup","user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-16T13:42:15Z","updated_at":"2015-10-06T11:19:31Z","closed_at":"2015-10-01T15:13:14Z","body":"See here:\r\nhttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup\r\n\r\nWhat do you think?"},"comment":{"url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/comments/145825385","html_url":"https://github.com/adrianhurt/play-bootstrap3/issues/39#issuecomment-145825385","issue_url":"https://api.github.com/repos/adrianhurt/play-bootstrap3/issues/39","id":145825385,"user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T11:19:31Z","updated_at":"2015-10-06T11:19:31Z","body":"And one completely different thing:\r\nDo you think it would make sense to add a very simple helper tag `@b3.optGroup`?\r\nExample:\r\n```html\r\n@b3.select( fooForm(\"foo\"), '_label -> \"Grouped select\", '_default -> \"Select an option\" ) { implicit values =>\r\n  @b3.optGroup(\"Group 1\") {\r\n    @b3.selectOption(\"opt_1-1\", \"Option 1.1\")\r\n    @b3.selectOption(\"opt_1-2\", \"Option 1.2\", 'disabled -> true)\r\n    @b3.selectOption(\"opt_1-3\", \"Option 1.3\")\r\n  }\r\n  @b3.optGroup(\"Group 2\") {\r\n    @b3.selectOption(\"opt_2-1\", \"Option 2.1\", 'disabled -> true)\r\n    @b3.selectOption(\"opt_2-2\", \"Option 2.2\")\r\n  }\r\n}\r\n```\r\nWhat do you think? It would be a very \"stupid\" tag, just to avoid typos and also type less :smile: "}}