I'm using bootstrap in my project and I want a Radio button set like the one in following link.
<?php $radio = $this->beginWidget('zii.widgets.jui.CJuiButton', array(
'name'=>'checkbox-btn',
'buttonType'=>'buttonset',
'htmlTag'=>'span',
)); ?>
<input type="checkbox" id="check1" value="1" /><label for="check1">Checkbox 1</label>
<input type="checkbox" id="check2" value="2" /><label for="check2">Checkbox 2</label>
<input type="checkbox" id="check3" value="3" /><label for="check3">Checkbox 3</label>
<?php $this->endWidget();?>
but this doesn't seem to work, it renders like a normal radioButtonList unsure emoticon I searched in yiistrap, yiiwheels, zii and yiibooster and couldn't find a widget similar to this " radios as buttons". Should I include jquery ui for this ? I prefer using already existing widget. any suggestion ?
Aucun commentaire:
Enregistrer un commentaire