PDA

View Full Version : How replace a topToolbar in a region center ??



ing.amdangelo
16 Jan 2012, 12:54 AM
I need to replace a toptoolbar of a region center

top container is a viewport, i do

var win = Ext.getCmp('topContainer');
var regioncenter = win.getComponent(1);
var topToolbar = regioncenter.getTopToolbar();
regioncenter.remove(topToolbar);

now i need ti add the new top toolbar but i don't know how ??

Help me please

mitchellsimoens
16 Jan 2012, 8:43 AM
I wouldn't recommend add/removing toolbars... I would add/remove buttons