Yii 1.1: juibuttonset

A nice-looking, jQueryUI themeable Toolbar/ButtonSet widget for customized menus and buttons.
5 followers

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...

Total 2 comments

#2139 report it
Trejder at 2010/11/17 05:43am
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.

#2103 report it
robregonm at 2010/11/11 03:30pm
Opinions & Suggestions

Your opinions, improvements and suggestions are welcome.

Leave a comment

Please to leave your comment.

Create extension