PDA

View Full Version : icon parameter together with iconCls



bereal
2 Jul 2009, 12: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).

jay@moduscreate.com
3 Jul 2009, 7: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')