PDA

View Full Version : Toolbar items



simon
17 Aug 2009, 12:21 AM
How can I add text into tollbar. I tried like this:



var tb = new Ext.Toolbar({
});

tb.add({
xtpe:'textfield',
text:'Test text'
}


It acts like a button - on mouse over I get borders around.

Is it possible to add the toolbar to the panel or window title line?

Is it possible to remove some css, which is asigned to the item by default, like "x-menu-item " for example.

Thank you,
Simon

Thank you,
Simon

andycramb
17 Aug 2009, 3:10 AM
Have you tried the Toolbar.TextItem?


new Ext.Panel({
tbar : [
{xtype: 'tbtext', text: 'Item 1'} // or simply 'Item 1'
]
});

Is it possible to add the toolbar to the panel or window title line?

I don't think there is out of the box but this may help http://tdg-i.com/120/a-quick-preview-of-the-headertoolbar-plugin