PDA

View Full Version : can a title be an image?



spectrum24
1 Dec 2010, 6:12 PM
I have code like this, to make a toolbar
dockedItems: [
{
dock : 'top',
xtype: 'toolbar',
title: 'titletext',
id: 'main_page_topbar'...

can the title be an image somehow?

evant
1 Dec 2010, 6:23 PM
Did you try (untested):



title: '<img src="foo" />'

spectrum24
1 Dec 2010, 6:38 PM
Yes, that worked. I had been trying all kinds of variations of {html:<img src="foo">} but that did not work. Thanks!