Skip to content

adapt checkboxListGroup and radioButtonListGroup to bootstrap 3.2#935

Open
peterfromearth wants to merge 2 commits intoclevertech:masterfrom
peterfromearth:checkbox
Open

adapt checkboxListGroup and radioButtonListGroup to bootstrap 3.2#935
peterfromearth wants to merge 2 commits intoclevertech:masterfrom
peterfromearth:checkbox

Conversation

@peterfromearth
Copy link

until then you have to use following syntax

echo $form->checkboxListGroup($model, 'checkbox',array(
    'widgetOptions'=> array(
        'data'=>CHtml::listData(Checkbox::model()->findAll(),'id','name'),
        'htmlOptions'=>array(
            'template'=>'<div class="checkbox">{beginLabel}{input}{labelTitle}{endLabel}</div>',
            'labelOptions'=>array('class'=>''),
        ),
    ),
));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants