Image (Logo) in Toolbar
Is it possible? If yes then how?
--
Excuse me for my bad English.
items:[
{xtype: 'box',autoEl: {tag: 'img', src:'/i/logo.jpg'},
{xtype: 'tbfill'},
{text: 'News', controllerName:'news', handler: loadSection},
{text: 'Files', controllerName:'files', handler: loadSection},
{text: 'Articles', controllerName:'articles', handler: loadSection}
]
it does not work with first item (image), but if i remove first item, all working fine.
--
Excuse me for my bad English.
Try adding an instantiated BoxComponent:
new Ext.BoxComponent({autoEl: {tag: 'img', src:'/i/logo.jpg'}})
items:[
{xtype: 'box',autoEl: {tag: 'img', src:'/i/logo.jpg'},
{xtype: 'tbfill'},
{text: 'News', controllerName:'news', handler: loadSection},
{text: 'Files', controllerName:'files', handler: loadSection},
{text: 'Articles', controllerName:'articles', handler: loadSection}
]
it does not work with first item (image), but if i remove first item, all working fine.
--
Excuse me for my bad English.
--
Excuse me for my bad English.
{
xtype: 'box',
autoEl: {tag: 'img', src:'../shared/icons/fam/grid.png'}
}
...
var tb = new Ext.Toolbar();
tb.render('toolbar');
tb.add({xtype:'tbtext',text:' '}
,{
...
#If you have any other info about this subject , Please add it free.# |