We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe874b commit 58a3043Copy full SHA for 58a3043
reference/forms/types/choice.rst
@@ -105,6 +105,10 @@ method::
105
'choice_attr' => function($category, $key, $index) {
106
return ['class' => 'category_'.strtolower($category->getName())];
107
},
108
+ //Version 3.3 no funciona choice_attr.
109
+ //Lo correcto es
110
+ //'attr' => array('class' => 'form-control')
111
+
112
'group_by' => function($category, $key, $index) {
113
// randomly assign things into 2 groups
114
return rand(0, 1) == 1 ? 'Group A' : 'Group B';
0 commit comments