PDA

View Full Version : icon parameter together with iconCls


bereal
07-02-2009, 03:45 AM
its not always convenient to add new css classes just to have icon for the panel.

it would be great to be able to set "icon" config parameter for a panel, for example (like it works for buttons).

jgarcia@tdg-i.com
07-03-2009, 10:33 AM
Have you tried the iconMgr class?

http://tdg-i.com/57/tdg-iiconmgr-updated-with-sprites-for-iconviewer

var getIcon = Ext.ux.TDGi.iconMgr.getIcon;

iconCls : getIcon('add')