1. #1
    Ext User
    Join Date
    May 2009
    Posts
    5
    Vote Rating
    0
    praveendh is on a distinguished road

      0  

    Default Add portlets dynamically

    Add portlets dynamically


    Hi,

    I need to create a new panel and add it to a portlet.

    How do I add it dynamically?

  2. #2
    Sencha User
    Join Date
    Sep 2009
    Location
    Calgary, Alberta, Canada
    Posts
    638
    Vote Rating
    2
    CrazyEnigma is on a distinguished road

      0  

    Lightbulb


    You are going to need to find the location and position that you would like to insert the portlet.

    I essentially took the code from Portal Drag and Drop.

    The portal contains portal columns and then the portlet itself.

    Extending the portal object add the function and call it whenever you need to add the portlet.
    Code:
    addPortlet: function (config) {
    // find the position, and column for the portlet from the config var col = (config.columnIndex == null) ? 0 : (config.columnIndex >= this.items.length) ? this.items.length - 1 : config.columnIndex; var pos = config.position || 0; var c = this.items.itemAt(col); c.insert(pos, config); c.doLayout();
    }

  3. #3
    Ext User
    Join Date
    May 2009
    Posts
    5
    Vote Rating
    0
    praveendh is on a distinguished road

      0  

    Default worked :)

    worked :)


    Thanks a lot..it worked for me

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi