Skip to content

Can ComboBox handle groups? #963

@terracoda

Description

@terracoda

It would be nice to have groups categorize the options rather than label them, but not sure if this is possible in Scenery for combobox.

Is a pattern like this possible with Scenery?
https://www.w3.org/WAI/ARIA/apg/patterns/listbox/examples/listbox-grouped/#:~:text=The%20following%20example%20implementation%20of,categories%20with%20labeled%20optgroup%20elements.

Image Image

I am wondering if a combobox like this is possible:

Unconnected Components

  • Bottom Lead of Light Bulb 1
  • Side Lead of Light Bulb 1
  • Lead A of Switch 1
  • Lead B of Switch 1
  • Positive Terminal of Battery 1
  • Negative Terminal of Battery 1

"Group 1: Connected Components" OR "Connected Components, Group 1"

  • Join 1: Bottom Lead of Light Bulb 1 and Negative Terminal of Battery 1
  • Join 2: Positive Terminal of Battery 1 and Lead A of Wire 1
  • Join 3: Lead B of Wire 1 and Lead A of Switch 1
  • Join 4: Lead B of Switch 1 and Side Led of Light Bulb 1

"Group 2: Connected Components" or "Connected Components, Group 1"

  • Join 1: Lead B of Resistor 1 and Negative Terminal of Battery 1
  • Join 2: Positive Terminal of Battery 1 and Lead B of Wire 1
  • Join 3: Lead A of Resistor 1 and Side lead of Light Bulb 1
  • Join 4: Bottom Lead of Light Bulb 1 and Lead A of Wire 1

I'll open a separate issue about naming system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions