1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    32
    Vote Rating
    0
    anilcs0405 is on a distinguished road

      0  

    Default Unanswered: Unable to add textfield to a toolbar, me.el is null error

    Unanswered: Unable to add textfield to a toolbar, me.el is null error


    Hi All,
    I am trying to add a textfield to a toolbar. Following is the code I have and I am trying to add the toolbar to the north panel of my layout.
    When I try to render this I am getting the following error TypeError: me.el is null.
    If I remove the textfield from the toolbar the screen renders propertly. Am I missing anything basic?

    Code:
    window.onload = function(){        
        Ext.create('Ext.container.Viewport', {
            layout: 'border',
            renderTo: Ext.getBody(),
            items: [{
                region: 'north',
                height: 24,
                border: false,
                tbar: [{
                    xtype: 'textfield'
                }, {
                    text: 'Button'
                }]
            }, {
                region: 'west',
                collapsible: true,
                title: 'Navigation',
                width: 150
                // could use a TreePanel or AccordionLayout for navigational items
            }, {
                region: 'south',
                title: 'South Panel',
                collapsible: true,
                html: 'Information goes here',
                split: true,
                height: 100,
                minHeight: 100
            }, {
                region: 'east',
                title: 'East Panel',
                collapsible: true,
                split: true,
                width: 150
            }, {
                region: 'center',
                xtype: 'tabpanel', // TabPanel itself has no title
                activeTab: 0,      // First tab active by default
                items: {
                    title: 'Default Tab',
                    html: 'The first tab\'s content. Others may be added dynamically'
                }
            }]
        });
    }
    Thanks,
    Anil

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,801
    Answers
    452
    Vote Rating
    604
    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

      0  

    Default


    Other than it not being in an onReady block, I don't see anything wrong with that. I ran your code against 4.1.1 and there was no error.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

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