File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op
31
31
| options | - `empty_data `_ |
32
32
| | - `error_bubbling `_ |
33
33
+-------------+------------------------------------------------------------------------------+
34
- | Inherited | - `by_reference `_ |
35
- | options | - `data `_ |
34
+ | Inherited | - `attr `_ |
35
+ | options | - `by_reference `_ |
36
+ | | - `data `_ |
36
37
| | - `disabled `_ |
37
38
| | - `error_mapping `_ |
38
39
| | - `inherit_data `_ |
@@ -105,9 +106,6 @@ method::
105
106
'choice_attr' => function($category, $key, $index) {
106
107
return ['class' => 'category_'.strtolower($category->getName())];
107
108
},
108
- //Version 3.3 no funciona choice_attr.
109
- //Lo correcto es
110
- //'attr' => array('class' => 'form-control')
111
109
112
110
'group_by' => function($category, $key, $index) {
113
111
// randomly assign things into 2 groups
@@ -331,6 +329,8 @@ Inherited Options
331
329
These options inherit from the :doc: `form </reference/forms/types/form >`
332
330
type:
333
331
332
+ .. include :: /reference/forms/types/options/attr.rst.inc
333
+
334
334
.. include :: /reference/forms/types/options/by_reference.rst.inc
335
335
336
336
.. include :: /reference/forms/types/options/data.rst.inc
You can’t perform that action at this time.
0 commit comments