Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitb2d120c

Browse files
committed
Merge pull requestsymfony#3256 from WouterJ/clarify_checking
[symfony#3255] Tried to clarify how to check a box
2 parents3d5ecb3 +b0a2ea8 commitb2d120c

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

‎reference/forms/types/checkbox.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ if the box is unchecked, the value will be set to false.
1313
+-------------+------------------------------------------------------------------------+
1414
| Options| - `value`_|
1515
+-------------+------------------------------------------------------------------------+
16-
| Inherited| - `required`_|
17-
| options| - `label`_|
16+
| Inherited| - `data`_|
17+
| options| - `required`_|
18+
|| - `label`_|
1819
|| - `read_only`_|
1920
|| - `disabled`_|
2021
|| - `error_bubbling`_|
@@ -47,11 +48,17 @@ value
4748
The value that's actually used as the value for the checkbox. This does
4849
not affect the value that's set on your object.
4950

51+
..caution::
52+
53+
To make a checkbox checked by default, use the `data`_ option.
54+
5055
Inherited options
5156
-----------------
5257

5358
These options inherit from the:doc:`form</reference/forms/types/form>` type:
5459

60+
..include::/reference/forms/types/options/data.rst.inc
61+
5562
..include::/reference/forms/types/options/required.rst.inc
5663

5764
..include::/reference/forms/types/options/label.rst.inc

‎reference/forms/types/radio.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ If you want to have a Boolean field, use :doc:`checkbox </reference/forms/types/
1717
+-------------+---------------------------------------------------------------------+
1818
| Options| - `value`_|
1919
+-------------+---------------------------------------------------------------------+
20-
| Inherited| - `required`_|
21-
| options| - `label`_|
20+
| Inherited| - `data`_|
21+
| options| - `required`_|
22+
|| - `label`_|
2223
|| - `read_only`_|
2324
|| - `disabled`_|
2425
|| - `error_bubbling`_|
@@ -41,11 +42,17 @@ value
4142
The value that's actually used as the value for the radio button. This does
4243
not affect the value that's set on your object.
4344

45+
..caution::
46+
47+
To make a radio button checked by default, use the `data`_ option.
48+
4449
Inherited Options
4550
-----------------
4651

4752
These options inherit from the:doc:`form</reference/forms/types/form>` type:
4853

54+
..include::/reference/forms/types/options/data.rst.inc
55+
4956
..include::/reference/forms/types/options/required.rst.inc
5057

5158
..include::/reference/forms/types/options/label.rst.inc

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp