[Users] toolbar icon

Christian Mayer mayer at terrestris.de
Tue Mar 19 10:17:33 CET 2013


Hi Jim,

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

Best regards,
Chris
||


Am 23.02.2013 02:48, schrieb Jim White:
> Hi,
>
> I have added editing tools to a toolbar following the example code in 
> toolbar.js. I have used the iconCls to add a background image for the 
> buttons, but cannot get any change in the icons depending on whether 
> the item is active as happens with OpenLayers editing tools.
>
> How can I get the same active/inactive image that is used in 
> OpenLayers to work with a GeoExt toolbar?
>
> Thanks,
> 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/20130319/3fed1cc0/attachment.htm 


More information about the Users mailing list