Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Support complex object type for Select #1067

@derpdead

Description

@derpdead

Currently Select component is only supporting simple options structure:

[
   1,
   2,
   3,
   ...
]

To be more flexible and to prevent external mappings it would be nice to be able to support any object structure of options:

{
    key: 'id',
    value: 'X',
}

Where new props option-key will be value with key and option-value will be with value of value

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions