PDA

View Full Version : IconCombobox



adetogni
5 Aug 2010, 1:32 PM
Hi,
I've used this lovely tutorial
http://www.sencha.com/learn/Tutorial:Extending_Ext_Class
and so now I have an icon combobox with the flags. Nice.
However, is there a way to direclty specify the image address in the class?

At the moment, to have the icon, you've to create a class with that flag and pass the "x-flag-de" (for example) class name in the iconCls value. But I'd like to directly specify the imageaddress instead of the class name. Would it be possible?

madkris
5 Aug 2010, 5:17 PM
Probably not.

adetogni
5 Aug 2010, 11:08 PM
Probably not.
How concise :-)

Isn't possible to add the background-image URL to the class of the combobox?

Condor
5 Aug 2010, 11:30 PM
You can specify the image in the background-image 'style' attribute instead of the className.