File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
reference/forms/types/options Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,14 @@ priority
33
44**type **: ``integer`` **default**: ``0 ``
55
6- Allows you to set the field rendering priority. This option will affect
7- the view order only , sorting all fields in order of importance instead of
8- simply numerical order, i.e. fields with higher priority will be rendered
9- first, fields with lower priority will be rendered last and fields with
10- equal priority will keep the original order.
6+ .. versionadded:: 5.3
7+
8+ The ``priority`` option was introduced in Symfony 5.3 .
9+
10+ Fields are rendered in the same order as they are included in the form. This
11+ option changes the field rendering priority, allowing you to display fields
12+ earlier or later than their original order.
13+
14+ This option will affect the view order only . The higher this priority, the
15+ earlier the field will be rendered. Priority can also be negative and fields
16+ with the same priority will keep their original order.
You can’t perform that action at this time.
0 commit comments