Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox to support different display value and actual value #187

Open
2 tasks
chunteck opened this issue Oct 16, 2023 · 0 comments
Open
2 tasks

Combobox to support different display value and actual value #187

chunteck opened this issue Oct 16, 2023 · 0 comments

Comments

@chunteck
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant