-
22 Sep 2010 10:58 PM #1
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>
-
22 Sep 2010 11:01 PM #2
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!
-
23 Sep 2010 11:11 PM #3
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
-
Button focus rectangle not showing
By JoeH in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 21 Apr 2009, 3:44 PM -
Button Image on Tbar - Not SHowing
By joefox in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 27 Feb 2009, 12:29 PM -
disabled button style not showing
By nivva in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 24 Nov 2008, 5:35 AM -
BorderLayout not showing the collapse button correctly
By ajiaojr in forum Ext GWT: Help & Discussion (1.x)Replies: 8Last Post: 29 Sep 2008, 12:41 AM


Reply With Quote