wayne_o
14 Nov 2007, 6:04 AM
Hi
Just need to know how to add a panel (portlet) to a portal column on the fly.
Cheers
w://
wayne_o
14 Nov 2007, 7:05 AM
FTR - in response to my own q - this works:
var tools = [{
id:'gear',
handler: function(){
Ext.Msg.alert('Message', 'The Settings tool was clicked.');
}
},{
id:'close',
handler: function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}];
panel = new Ext.ux.Portlet({
title: 'test',
layout: 'border',
tools: tools,
html: Ext.example.shortBogusMarkup
}
);
Ext.getCmp('wayne').items.add( panel );
Ext.getCmp('wayne').doLayout();
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.