File tree Expand file tree Collapse file tree 4 files changed +38
-16
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +38
-16
lines changed
Original file line number Diff line number Diff line change @@ -48,11 +48,6 @@ Field Options
48
48
49
49
.. include :: /reference/forms/types/options/value.rst.inc
50
50
51
- Variables
52
- ---------
53
-
54
- .. include :: /reference/forms/types/variables/checked.rst.inc
55
-
56
51
Overridden options
57
52
------------------
58
53
@@ -82,3 +77,12 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
82
77
.. include :: /reference/forms/types/options/error_mapping.rst.inc
83
78
84
79
.. include :: /reference/forms/types/options/mapped.rst.inc
80
+
81
+ Form Variables
82
+ --------------
83
+
84
+ ======== ============ ============================================
85
+ Variable Type Usage
86
+ ======== ============ ============================================
87
+ checked ``Boolean `` Whether or not the current input is checked.
88
+ ======== ============ ============================================
Original file line number Diff line number Diff line change @@ -156,3 +156,23 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
156
156
.. include :: /reference/forms/types/options/inherit_data.rst.inc
157
157
158
158
.. include :: /reference/forms/types/options/by_reference.rst.inc
159
+
160
+ Field Variables
161
+ ---------------
162
+
163
+ ====================== ============ ===========================================================
164
+ Variable Type Usage
165
+ ====================== ============ ===========================================================
166
+ multiple ``Boolean `` The value of the `multiple `_ option
167
+ expanded ``Boolean `` The value of the `expanded `_ option
168
+ preferred_choices ``array `` A nested array containing the ``ChoiceView `` objects of
169
+ choices which should be presented to the user with priority
170
+ choices ``array `` A nested array containing the ``ChoiceView `` objects of
171
+ the remaining choices
172
+ separator ``string `` The seperator to use between choice groups
173
+ empty_value ``mixed `` The empty value if not already in the list, otherwise
174
+ ``null ``
175
+ is_selected ``callable `` A callable which takes a ``ChoiceView `` and the value
176
+ and returns if the choice is selected or not
177
+ empty_value_in_choices ``Boolean `` Whether the empty value is in the choice list
178
+ ====================== ============ ===========================================================
Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
34
34
| Class | :class: `Symfony\\ Component\\ Form\\ Extension\\ Core\\ Type\\ RadioType ` |
35
35
+-------------+---------------------------------------------------------------------+
36
36
37
- Variables
38
- ---------
39
-
40
- .. include :: /reference/forms/types/variables/checked.rst.inc
41
-
42
37
Inherited Options
43
38
-----------------
44
39
@@ -68,3 +63,12 @@ These options inherit from the :doc:`form </reference/forms/types/form>` type:
68
63
.. include :: /reference/forms/types/options/error_mapping.rst.inc
69
64
70
65
.. include :: /reference/forms/types/options/mapped.rst.inc
66
+
67
+ Form Variables
68
+ --------------
69
+
70
+ ======== ============ ============================================
71
+ Variable Type Usage
72
+ ======== ============ ============================================
73
+ checked ``Boolean `` Whether or not the current input is checked.
74
+ ======== ============ ============================================
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments