Skip to content

Feature: Option Groups within PF4 Select Component #1145

Closed
@steverhoades

Description

@steverhoades

Scope: PF4 mapper

Description
Currently within the Select component it does not appear possible to create option groups. There is support for the Select component within PF4 along with Groups however. It would be great to be able to provide a schema like the one below to support this feature.

image

Proposed Schema

const schema = {
    fields: [
        {
          "component": "select",
          "label": "Select Option",
          "name": "Option",
          "simpleValue": true,
          "isGroup": true,
          "options": [{
             group: "Lots of Placeholders",
             options: [
                {
                  "label": "Placeholder1",
                  "value": "Placeholder1"
                },
                {
                  "label": "Placeholder2",
                  "value": "Placeholder2"
                },
            ]
          }]
        }
    ]
};

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions