Skip to content

Commit 58a3043

Browse files
jmangarretjaviereguiluz
authored andcommitted
Update choice.rst
FIX parametro atributo para añadir clase css
1 parent 6fe874b commit 58a3043

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

reference/forms/types/choice.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ method::
105105
'choice_attr' => function($category, $key, $index) {
106106
return ['class' => 'category_'.strtolower($category->getName())];
107107
},
108+
//Version 3.3 no funciona choice_attr.
109+
//Lo correcto es
110+
//'attr' => array('class' => 'form-control')
111+
108112
'group_by' => function($category, $key, $index) {
109113
// randomly assign things into 2 groups
110114
return rand(0, 1) == 1 ? 'Group A' : 'Group B';

0 commit comments

Comments
 (0)