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.
1 parent 8e7f0a1 commit 2691504Copy full SHA for 2691504
reference/forms/types/options/choice_attr.rst.inc
@@ -6,8 +6,9 @@ choice_attr
6
7
**type**: ``array``, ``callable`` or ``string`` **default**: ``array()``
8
9
-Use this to add additional HTML attributes to each choice. This can be an array
10
-of attributes (if they are the same for each choice), a callable or a property path
+Use this to add additional HTML attributes to each choice. This can be
+an associative array where the keys match the choice keys and the values
11
+are the options for each choice, a callable or a property path
12
(just like `choice_label`_).
13
14
If an array, the keys of the ``choices`` array must be used as keys::
0 commit comments