|
4 | 4 | form Field Type
|
5 | 5 | ===============
|
6 | 6 |
|
7 |
| -See:class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`. |
8 |
| - |
9 | 7 | 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 | +------- |
11 | 46 |
|
12 | 47 | ..include::/reference/forms/types/options/data.rst.inc
|
13 | 48 |
|
|