Last active
December 19, 2015 05:59
-
-
Save wrumsby/5907875 to your computer and use it in GitHub Desktop.
Using an ExtJS class
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Using modules</title> | |
| <script src="http://cdn.sencha.com/ext/gpl/4.2.0/ext-all.js"></script> | |
| <script> | |
| Ext.Loader.setPath('My', './js/'); | |
| </script> | |
| </head> | |
| <body> | |
| <p id="element">This is just some text.</p> | |
| <script> | |
| Ext.require(['My.Bolderiser'], function () { | |
| var bolderiser = Ext.create('My.Bolderiser'); | |
| bolderiser.embolden('element'); | |
| }); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment