Skip to content

Commit 911cc70

Browse files
committed
add an introductory table containing all options of the basic form type
1 parent 3e7028d commit 911cc70

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

reference/forms/types/form.rst

+38-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,45 @@
44
form Field Type
55
===============
66

7-
See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`.
8-
97
The ``form`` type predefines a couple of options that are then available
10-
on all fields.
8+
on all types for which ``form`` is the parent type.
9+
10+
+---------+--------------------------------------------------------------------+
11+
| Options | - `compound`_ |
12+
| | - `data`_ |
13+
| | - `data_class`_ |
14+
| | - `empty_data`_ |
15+
| | - `required`_ |
16+
| | - `label`_ |
17+
| | - `label_attr`_ |
18+
| | - `constraints`_ |
19+
| | - `cascade_validation`_ |
20+
| | - `read_only`_ |
21+
| | - `disabled`_ |
22+
| | - `trim`_ |
23+
| | - `mapped`_ |
24+
| | - `property_path`_ |
25+
| | - `attr`_ |
26+
| | - `translation_domain`_ |
27+
| | - `block_name`_ |
28+
| | - `max_length`_ |
29+
| | - `by_reference`_ |
30+
| | - `error_bubbling`_ |
31+
| | - `inherit_data`_ |
32+
| | - `error_mapping`_ |
33+
| | - `invalid_message`_ |
34+
| | - `invalid_message_parameters`_ |
35+
| | - `extra_fields_message`_ |
36+
| | - `post_max_size_message`_ |
37+
| | - `pattern`_ |
38+
+---------+--------------------------------------------------------------------+
39+
| Parent | none |
40+
+---------+--------------------------------------------------------------------+
41+
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType` |
42+
+---------+--------------------------------------------------------------------+
43+
44+
Options
45+
-------
1146

1247
.. include:: /reference/forms/types/options/data.rst.inc
1348

0 commit comments

Comments
 (0)