PDA

View Full Version : Insert an image



iPepito
4 Aug 2010, 12:13 AM
What is the correct way to insert an image inside the "items" property?
I tried :

{ xtype: 'box',
autoEl: {
tag: 'img',
src: 'http://www.sencha.com/assets/images/logo-sencha-sm.png'
}
},

but it doesn't work...

Thanks for the help

hendricd
4 Aug 2010, 7:34 AM
@iPepito--
If the parent container is already rendered, call doLayout() on it after adding the item.