[Users] toolbar icon

Jim White jbw2003 at earthlink.net
Sat Mar 23 03:47:28 CET 2013


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/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130322/7fec7712/attachment.htm 


More information about the Users mailing list