Skip to content

Combobox to support different display value and actual value #187

@chunteck

Description

@chunteck

Prerequisites

Proposal

We hope that the Combobox can accept a menuList that we can configure both the actual value and the display value. Right now, it only accepts a list of strings.

See Form.Select as an example, the options for the select can have an actual value (1) and a display value (One)

<Form.Group>
      <Form.Label htmlFor="defaultSelect">Default select menu</Form.Label>
      <FormSelect aria-label="Default select example" id="defaultSelect">
        <option>Open this select menu</option>
        <option value="1">One</option>
        <option value="2">Two</option>
        <option value="3">Three</option>
      </FormSelect>
</Form.Group>

Motivation and context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions