[req] Support for OptGroup in Select
See original GitHub issueGeneral information
- json-editor version: (v0.7.20, embedded in jenkin’s extended-choice-parameter plugin)
Expected behavior
I’d like to be able to create OptGroup
elements as part of defining a Select
.
Actual behavior
There appears to be no support for this behavior
Steps to reproduce the behavior
Maybe an example implementation:
{
"title": "Dinosaur",
"type": "string",
"enum": [
"Theropods": ["tyran", "velo", "deino"],
"Sauropods": ["diplo", "salt", "apat"]
]
"options": {
enum_titles: {
"Theropods": ["Tyrannosaurus", "Velociraptor", "Deinonychus"],
"Sauropods": ["Diplodocus", "Saltasaurus", "Apatosaurus"]
}
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
<optgroup>: The Option Group element - MDN Web Docs
The <optgroup> HTML element creates a grouping of options within a <select> element. Try it. HTML Demo: <optgroup>. Reset. HTML CSS
Read more >Selectable <optgroup> in HTML <select> tag - Stack Overflow
The multiple attribute allow you to select more than one row (with ctrl click). You can remove it if it is not what...
Read more >Using OPTGROUP to group OPTION elements inside a SELECT
The objective of this technique is to group items in a selection list. A selection list is a set of allowed values for...
Read more >Feature request: support for nested optgroup #77 - GitHub
It would be nice to have multiple levels of optgroup. The current implementation simply ignores the nesting. regards, Arnaud.
Read more >Support select elements with optgroups in kendoDropDown
Currently it seems that kendoDropDown only supports select elements with options and not optgroups. Would like to see this widget support ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dekimsey Here’s an example of what I suggested earlier (Turns out you don’t have to move any elements, just insert
optgroup
tags) https://is.gd/FfIbJmI added a more generic version to the list of examples on the Playground. (Optgroup for select lists) This version doesn’t require a know field key, but works on all available editors.