Feb 16, 2012, 3:22 PM
[CLOSED] Adding Portlet Dynamically JavaScript
Is there any way to add portlets dynamically in javascript? I see it has an xtype of 'portlet', but when I try it simply doesn't show up:
var addNewPortlet = function () {
return new Ext.Component({
xtype: 'portlet',
title: 'Test',
width: 100,
heigh: 100
});
};
....
for (var i = 0; i < records.length; i++) {
portalColumn.items.add(addNewPortlet());
}
portalMain.doLayout();
Last edited by Daniil; Feb 21, 2012 at 6:42 PM.
Reason: [CLOSED]