Skip to content

Commit 2691504

Browse files
authored
Update choice_attr.rst.inc
symfony/symfony#24088
1 parent 8e7f0a1 commit 2691504

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

reference/forms/types/options/choice_attr.rst.inc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ choice_attr
66

77
**type**: ``array``, ``callable`` or ``string`` **default**: ``array()``
88

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
9+
Use this to add additional HTML attributes to each choice. This can be
10+
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
1112
(just like `choice_label`_).
1213

1314
If an array, the keys of the ``choices`` array must be used as keys::

0 commit comments

Comments
 (0)