-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
From what I gather, selects are simply Arrays with Values, and the Value is both the value and the "text" of the option. i.e.
"control": {
"select": true,
"options": [
"Value1",
"Value2",
]
},
Returns
<select>
<option value="Value1">Value1</option>
<option value="Value2">Value2</option>
</select>
I believe it would be pretty easy to change this to also accept objects, with
{ valueKey: "Verbose" }. So the text on the option would be the Verbose, and the value of the option would be the object key.
i.e.
<option value="valueKey">Verbose</option>
It also could be done while still accepting arrays, which would make the change rather harmless.
What do you guys think? Is there something like that in the making?