-
Sencha User
How to dynamically add portlets
Hi ,
I am having trouble adding a new portlet dynamically into a portal.
I took the example from the samples/demo ,the items are added thru config in it.
My code looks like this.
//homet is one of the tab from a tabpanel
var homet = Ext.getCmp('homeTab');
homet.add({
// xtype:'portalcolumn',
title:'I am Dynamic !! '+text,
tools:[{
id:'close',
handler: function(e, target, panel){
panel.ownerCt.remove(panel, true);
}
}],
html:"<h3>I am dynamic !!</h3>"
});
homet.doLayout();
Please help if i am doing something wrong here.
Thnks
-
Sencha User
tools is not a valid config item for a panel.
Try tbar
Also, please read how to post code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules