[Users] toolbar icon

Christian Mayer mayer at terrestris.de
Sat Mar 23 11:27:50 CET 2013


Thank you Jim for sharing your effort.

Best regards,
Chris

Am 23.03.2013 03:47, schrieb Jim White:
> you should better use the icon-config-property of ExtJS to set the icon
> for a button in a toolbar:
>
> |{
>       xtype:  'button',
>       cls:  'x-btn-text-icon',
>       icon:  'resources/images/main/home-button.png',
>       scale:  'large',
>       text:  'Home'
> }|
>
>
> so the toggle-mechanism should work.
> Maybe you take a closer look here:
>
> docs.sencha.com/ext-js/4-1/#!/api/Ext.button.Button
>
> ......
>
> I found that adding allowDepress : true to the action gives a nice effect.
>
> Jim
>
>
> -- 
> James B. White
> Cary, NC
> H: 919-380-9615
> M: 919-698-1765
> White Coding and Maps <http://whitecodingandmaps.com/>
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130323/7636b2f7/attachment.htm 


More information about the Users mailing list