[Request] Simplify options for QSelect
There should be a way to provide the options for a QSelect using a simple array, e.g.,
['Yes', 'No']
The array values provide both the label and value.
And it's so simple to pass ['Yes', 'No'].map(value => ({value, label: value}))
What about i18n?
Scott
@smolinari What has i18n to do with the values he should pass to options?
Please follow pdandan's recommendation. Adding this to QSelect will slightly decrease performance as additional checks need to be made. We want to avoid that. Thank you.
@pdanpdan - I meant l10n. It is text that is shown to the user as a selection. This would need to be translated for multi-lingual applications. Maybe that isn't a concern?
Scott
@smolinari It's programmers job to provide translated labels for the values.