Last active
December 19, 2015 22:29
-
-
Save wrumsby/6027943 to your computer and use it in GitHub Desktop.
Creating a Component with ExtJS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var button = Ext.create('Ext.Button', { | |
| text: 'Click me', | |
| renderTo: Ext.getBody(), | |
| handler: function() { | |
| alert('You clicked the button!'); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment