question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[req] Support for OptGroup in Select

See original GitHub issue

General information

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:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
pmk65commented, May 23, 2019

@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/FfIbJm

0reactions
pmk65commented, May 25, 2019

I 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found