PDA

View Full Version : Ext.ux.IconCombo



vtswingkid
29 Oct 2007, 8:00 AM
I added a url config option to the IconCombo.
This enables image information to be stored in the records.
Any specified url will be loaded as a background-image.
The url is handled as a template and can be fairly complex or simple:

url: '/uploads/gui/icons/x.jpg'

url:'thumb.php?image=/uploads/gui/icons/{id}.{type}maxHeight=14&maxWidth=18&time={time}'

Cheers!

Shaguar
4 May 2008, 1:30 PM
I try to fill my Icon-combo only with icons and without any text.
Like this:


store: new Ext.data.SimpleStore({
fields: ['discFormat', 'discFormatDisplay', 'discFormatIcon'],
data: [
['AVI', '', 'ux-icon-avi'],
['MPG', '', 'ux-icon-mpg'],
['VOB', '', 'ux-icon-vob'],
['EVO', '', 'ux-icon-evo'],
['M2TS','', 'ux-icon-m2ts'],
['MKV', '', 'ux-icon-mkv'],
['NA', '', 'ux-icon-na'],
['OGM', '', 'ux-icon-ogm']
]
}),


If i click on the combobox (to select an item) all icons are clinched together. Is there a fix to solve this?