[CLOSED] Adding Portlet Dynamically JavaScript

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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]

Similar Threads

  1. Replies: 5
    Last Post: Jan 06, 2010, 10:35 AM
  2. Replies: 1
    Last Post: Nov 25, 2009, 4:23 AM
  3. Create portlet dynamically
    By vimaln in forum 1.x Help
    Replies: 3
    Last Post: Mar 13, 2009, 7:59 PM
  4. Trouble adding portlet from code behind
    By cmschick in forum 1.x Help
    Replies: 0
    Last Post: Feb 16, 2009, 8:21 AM
  5. How to Create a portlet dynamically?
    By mohan.kantipudi in forum 1.x Help
    Replies: 0
    Last Post: Jan 16, 2009, 2:11 AM

Posting Permissions