Yii Framework Forum: JUIButtonSet - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

JUIButtonSet A themeable CMenu extension for Toolbars and Buttonsets Rate Topic: -----

#1 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 12 November 2010 - 03:56 PM

I'm to publish this extension I developed some time ago for my private use but I hope many of you will enjoy it: JUIButtonSet
It is very easy to use, just extract the zip file into protected/estensions directory and in the place you want a Toolbar or a Buttonset you write something like:


$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;'),
));


Comments and suggestions are very welcome.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
1

#2 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 12 November 2010 - 03:58 PM

Soon, I hope to publish an update with some improvements.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#3 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 17 November 2010 - 05:37 AM

Looks very nice at first sight. I would personally advice following:

  • Introduce htmlOptions also for each button, so user can set for example style of a button (i.e. height etc.).
  • If label is empty string, button should be exactly square (width = height, if not forcing it with htmlOptions), now there is a visible space in place of label; this would allow to built nice looking toolbars without captions.
  • While jQuery UI images are cool, it would be a great idea to introduce icons loaded from for example iconUrl or sth.
  • Check 'icon-position'=>'top', for me it looks like behind text (centerd, middle, anyway not top).


Once again, thanks for sharing a good looking extension with us!
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#4 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 18 November 2010 - 09:11 AM

Hi Trejder,Thanks for your feedback.
I'll be implementing some of your suggestions/enhancements soon.
I'll begin to fix the reported bugs.
Best regards.

Ricardo.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#5 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,197
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 19 November 2010 - 05:16 AM

Good luck with that, Ricardo and all the best! :)
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
0

#6 User is offline   sll88 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 20-February 11

Posted 27 February 2011 - 03:54 PM

Hello, suport subitems?

Thank you very much.
0

#7 Guest_Firmansyah_*

  • Group: Guests

Posted 27 May 2011 - 10:11 PM

Is great extension to use, I was Modifi a litte bit and very nice.
thanks.
0

#8 User is offline   Peter JK 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 84
  • Joined: 22-November 10
  • Location:Jakarta, Indonesia

Posted 14 September 2011 - 11:27 PM

i really love this extension.. good for simple toolbar action, thx..

is it possible to execute Java Script, such as open dialog?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users