According to the documentation, to include a select element with distinct keys and values, you can follow this format:
{
id: 'my-element-id',
type: 'select',
label: 'My element',
items: [
{ value: 'Value1', text: 'Option 1' },
{ value: 'Value2', text: 'Option 2' },
{ value: 'Value3', text: 'Option 3' },
{ value: 'Value4', text: 'Option 4' }
]
},
Instead of having both the keys and values the same, this allows for differentiation between the keys and values in the select options.
How do you add a select element with separate keys and values?