Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default Tpl content not generated in Panel

    Tpl content not generated in Panel


    Ext Version
    Whatever used in the API Documentation. I use 4.1.1

    Browser
    Chrome 23

    Description
    Content area of panel does not render the tpl

    Steps to reproduces problem
    Create panel. Add tpl config

    Expected Result
    html in tpl should be generated inside panel

    Result that occured:
    Panel without any tpl content

    Test Case
    http://docs.sencha.com/ext-js/4-1/#!...Panel-cfg-data
    Code used from first sample in docs. Replace code with the one below.

    Code:
    Ext.create('Ext.panel.Panel', {
        title: 'Hello',
        width: 200,
        height : 200,
        tpl : new Ext.XTemplate('<div>','<p>I should see this</p>','</div>'),
        renderTo: Ext.getBody()
    });

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,828
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      1  

    Default


    This isn't a bug, the tpl expects some data it can insert into it. Otherwise, it's not dynamic and you can just use the html config:

    Code:
    Ext.onReady(function() {
        Ext.create('Ext.panel.Panel', {
            title: 'Hello',
            width: 200,
            height: 200,
            data: {},
            tpl: new Ext.XTemplate('<div>', '<p>I should see this</p>', '</div>'),
            renderTo: Ext.getBody()
        });
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    126
    Vote Rating
    0
    varunach is on a distinguished road

      0  

    Default


    Alright. My bad . I'll post this as a comment in the documentation for future users.
    Thanks

Thread Participants: 1

Tags for this Thread

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