Skip to content

Instantly share code, notes, and snippets.

@agungsijawir
Last active December 20, 2015 08:19
Show Gist options
  • Save agungsijawir/6099341 to your computer and use it in GitHub Desktop.
Save agungsijawir/6099341 to your computer and use it in GitHub Desktop.
How to manage simple TbButtonGroup
<?php
$this->widget('bootstrap.widgets.TbButtonGroup', array(
'type'=>'inverse',
'buttons' => array(
array('label' => 'Form Options',
'url' => 'formOptions',
'htmlOptions' => array( // use htmlOptions for main-menu
'target' => '_blank',
'title' => 'Open in new Window',
),
),
array('label' => 'Print', 'items' => array(
array('label' => 'Form 1',
'url' => 'form1',
'linkOptions' => array( // use linkOptions for sub-menu
'target' => '_blank',
'title' => 'Preview for Form 1',
),
),
array('label' => 'Form 2',
'url' => 'form2',
'linkOptions' => array(
'target' => '_blank',
'title' => 'Preview for Form 2',
),
),
),
),
)));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment