Results 1 to 2 of 2

Thread: How to dynamically add portlets

  1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    47

    Default 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

  2. #2

    Default

    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
  •