We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
EnumType
choices
1 parent 9a4a08d commit 6006484Copy full SHA for 6006484
reference/forms/types/enum.rst
@@ -119,6 +119,13 @@ option to explicitly define which options to display::
119
],
120
]);
121
122
+You can add keys to the `choices` array, which will then be used as labels::
123
+
124
+ 'choices' => [
125
+ 'Align to the right' => TextAlign::Left,
126
+ 'Align to the left' => TextAlign::Right,
127
+ ],
128
129
.. include:: /reference/forms/types/options/choice_attr.rst.inc
130
131
.. include:: /reference/forms/types/options/choice_filter.rst.inc
0 commit comments