Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98e828f

Browse filesBrowse files
committed
Documented checked variable
1 parent d2b57be commit 98e828f
Copy full SHA for 98e828f

File tree

Expand file treeCollapse file tree

3 files changed

+20
-0
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+20
-0
lines changed

‎reference/forms/types/checkbox.rst

Copy file name to clipboardExpand all lines: reference/forms/types/checkbox.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ if the box is unchecked, the value will be set to false.
1313
+-------------+------------------------------------------------------------------------+
1414
| Options | - `value`_ |
1515
+-------------+------------------------------------------------------------------------+
16+
| Variables | - `checked`_ |
17+
+-------------+------------------------------------------------------------------------+
1618
| Overridden | - `empty_data`_ |
1719
| options | - `compound`_ |
1820
+-------------+------------------------------------------------------------------------+
@@ -46,6 +48,11 @@ Field Options
4648

4749
.. include:: /reference/forms/types/options/value.rst.inc
4850

51+
Variables
52+
---------
53+
54+
.. include:: /reference/forms/types/variables/checked.rst.inc
55+
4956
Overridden options
5057
------------------
5158

‎reference/forms/types/radio.rst

Copy file name to clipboardExpand all lines: reference/forms/types/radio.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
1515
+-------------+---------------------------------------------------------------------+
1616
| Rendered as | ``input`` ``radio`` field |
1717
+-------------+---------------------------------------------------------------------+
18+
| Variables | - `checked`_ |
19+
+-------------+---------------------------------------------------------------------+
1820
| Inherited | - `value`_ |
1921
| options | - `data`_ |
2022
| | - `empty_data`_ |
@@ -32,6 +34,11 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
3234
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType` |
3335
+-------------+---------------------------------------------------------------------+
3436

37+
Variables
38+
---------
39+
40+
.. include:: /reference/forms/types/variables/checked.rst.inc
41+
3542
Inherited Options
3643
-----------------
3744

+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
checked
2+
~~~~~~~
3+
4+
**type**: boolean
5+
6+
Whether or not the current input is checked.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.