-
Notifications
You must be signed in to change notification settings - Fork 11
ButtonGroup
VMBindraban edited this page Mar 4, 2013
·
3 revisions
The SxBootstap buttonGroup view helper shows a buttonGroup made with the twitter bootstrap and [sxbButton] (https://github.com/RWOverdijk/SxBootstrap/wiki/Button). The following syntax builds the buttonGroup.
<?php
echo $this->sxbButtonGroup($arrayButtons);
?>
<?php
$options = array(
'name' => 'buttonName',
'id' => 'buttonID',
'data-loading-text' => 'Loading..',
'data-toggle' => 'button',
);
$buttons = array(
$this->sxbButton($options),
$this->sxbButton($options),
);
echo $this->sxbButtonGroup($buttons);
?>
<?php
// checkbox, radio
echo $this->sxbButtonGroup($buttons)->radio();
?>
<?php
// vertical
echo $this->sxbButtonGroup($buttons)->vertical();
?>
<?php
// addClass, addButton
echo $this->sxbButtonGroup($buttons)->addClass('groupClass');
echo $this->sxbButtonGroup($buttons)->addButton($this->sxbButton());
?>