Skip to content

[Select, (Multi)ComboBox]: support key-value props #7777

@ilhan007

Description

@ilhan007

Feature Request Description

Select web component already has this key-value props available - the Option has "value" (which is like key, it's not displayed) and text content (which is the displayed "value" in key-value terms).

The ComBoxItem and the MultiComboBoxItem don't provide a pair of props, they both have "text" (which is the displayed "value" in key-value terms), but don't have "key" or equivalent.

The main use-case that the author provided is a list of countries and their codes and the codes he would like to set as keys that are not displayed, but later get. Alternative that could be done is to maintain this mapping in the app code, which he finds somewhat inconvenient.

Proposed Solution

Add support for "key", "value" ("text" already plays as "value", so "key" is the missing piece).

Proposed Alternatives

Alternative that could be done is to maintain this mapping in the app code, which he finds somewhat inconvenient.

Organization

SAP Build Process Automation

Additional Context

No response

Priority

None

Privacy Policy

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions