Button Groups See documentation
Create a simple button group by add
array
of arrays or Html_Buttons
. Each item represents a button instance:
Html::button_group(array( array('#', 'button1') array('#', 'button2') array('#', 'button3') ));
the
toogle
key allow you to define a radio
or checkbox
button group:
Html::button_group(..., array('toggle' => 'radio')) Html::button_group(..., array('toogle' => 'checkbox'))
the
vertical
key commands vertical alignment of the group:
Html::button_group(..., array('vertical' => true))
the
size
key assign size on every child:
Html::button_group(..., array('size' => 'mini'))
This also works with
status
, but button status can overrides group status:
Html::button_group(array( array('#', 'group'), array('#', 'group'), array('#', 'button', 'inverse'), ),array('status' => 'primary'));
Feel free to use instance method
btn()
to set group buttons and attach things:
$group = Html::button_group(array('status' => 'info')); $group->item('#', 'button')->tooltip('heeey'); $group->item('#', 'button')->popover('Ho', 'hover'); $group->item('#', 'button')->disabled();