Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Created July 2, 2013 09:13
Show Gist options
  • Select an option

  • Save wrumsby/5907863 to your computer and use it in GitHub Desktop.

Select an option

Save wrumsby/5907863 to your computer and use it in GitHub Desktop.
Using an ExtJS class
<!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>
(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