Skip to content

WIP: Add alternative format to provide select options

Sandro Lutz requested to merge enhancement-select into master

Sometimes, it is required to set the label for an option of a select field independent from its value.

Therefore, this MR introduces (in addtion to the previous string array) the possibility to provide the options as an object array.

Example:

[
  { label: 'label text 1', value: 'value text 1' },
  { label: 'label text 2', value: 'value text 2' },
]

This change is completely backwards compatible.

Edited by Sandro Lutz

Merge request reports