File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,8 @@ text that's shown to the user. But that can be completely customized via the
142
142
Grouping Options
143
143
----------------
144
144
145
- You can easily "group" options in a select by passing a multi-dimensional choices array::
145
+ You can easily group the ``<option>``s of a ``<select> `` into ``<optgroup>``s
146
+ by passing a multi-dimensional ``choices `` array::
146
147
147
148
use Symfony\C omponent\F orm\E xtension\C ore\T ype\C hoiceType;
148
149
// ...
Original file line number Diff line number Diff line change 6
6
7
7
**type**: ``array``, ``callable`` or ``string`` **default**: ``null``
8
8
9
- You can easily " group" options in a select simply by passing a multi-dimensional
10
- array to ``choices``. See the :ref:`Grouping Options <form-choices-simple-grouping>`
11
- section about that.
9
+ You can easily group the ``<option>``s of a ``< select>`` into ``<optgroup>``s,
10
+ simply by passing a multi-dimensional array to ``choices``. See the
11
+ :ref:`Grouping Options <form-choices-simple-grouping>` section about that.
12
12
13
13
The ``group_by`` option is an alternative way to group choices, which gives you
14
14
a bit more flexibility.
@@ -36,7 +36,7 @@ Take the following example::
36
36
));
37
37
38
38
This groups the dates that are within 3 days into "Soon" and everything else into
39
- a "Later" group :
39
+ a "Later" ``<optgroup>`` :
40
40
41
41
.. image:: /_images/reference/form/choice-example5.png
42
42
:align: center
You can’t perform that action at this time.
0 commit comments