This is an excellent alternative to CMenu widget. Very useful when we need to create Toolbars and/or Buttonsets.
Requirements ¶
- Yii 1.1.4 or above
Usage ¶
Extract zip file in protected/extensions directory. An use like a CMenu widget.
$this->widget('ext.JuiButtonSet.JuiButtonSet', array(
'items' => array(
array(
'label'=>'Menu button 1',
'icon-position'=>'left',
'url'=>array('create') //urls like 'create', 'update' & 'delete' generates an icon beside the button
),
array(
'label'=>'Menu button 2',
'icon-position'=>'top',
'icon'=>'folder-open', // This a CSS class starting with ".ui-icon-"
'url'=>array('action2')
),
),
'htmlOptions' => array('style' => 'clear: both;'),
));
Resources ¶
...external resources for this extension...
Opinions & Suggestions
Your opinions, improvements and suggestions are welcome.
Looks very nice!
Looks very nice at first sight, but in my opinion needs some fix-ups. I've places list of propositions in extension's official forum topic.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.