1. #1

    Default Button not showing

    Button not showing


    Hello all,

    I'm very new to Sencha and today I'm trying to build my first ever Sencha app. However, when I write following code, I still can't see a button on the screen. Please help.
    Code:
    <script language="javascript" type="text/javascript">
            Ext.setup({
                onReady: function () {
                    alert("Demo Starting");
                    Ext.Button({
                        text: 'Sumbit Dude',
                        maxWidth: 300,
                        maxHeight: 50
                    });            
                }
            });    
        </script>

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


    You need to create an instance of the button:

    Code:
    new Ext.Button({
        text: 'foo'
    }).show();
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3

    Default


    Thanks Evan. Worked for me. It was a silly mistake. Thanks again.
    Windows Mobile, Windows Phone Specialist | Beginner Android, iPhone Developer
    http://www.mayurtendulkar.com

Similar Threads

  1. Button focus rectangle not showing
    By JoeH in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 21 Apr 2009, 3:44 PM
  2. Button Image on Tbar - Not SHowing
    By joefox in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Feb 2009, 12:29 PM
  3. disabled button style not showing
    By nivva in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 24 Nov 2008, 5:35 AM
  4. BorderLayout not showing the collapse button correctly
    By ajiaojr in forum Ext GWT: Help & Discussion (1.x)
    Replies: 8
    Last Post: 29 Sep 2008, 12:41 AM

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