PDA

View Full Version : dynamically add/remove/show/hide items from toolbar



aj3423
27 Mar 2010, 4:30 AM
bar = new Ext.Toolbar({
layout: new Ext.layout.HBoxLayout({}),
height: 23,
items : [
'-', itemA, '-', itemB, '-', itemC, '-'
]
});


each item is a Ext.Toolbar.Item, when i try to itemC.hide(), all the items are hidden(:|

anyway to hide/show just itemC? or remove/add

Thanks.