Created
September 6, 2012 23:12
-
-
Save ferentchak/3661152 to your computer and use it in GitHub Desktop.
Show how to reload an App
This file contains 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>My Custom App</title> | |
<!--Include SDK--> | |
<script type="text/javascript" src="/apps/2.0p2/sdk.js"></script> | |
<!--App code--> | |
<script type="text/javascript"> | |
Rally.onReady(function() { | |
Ext.create('Ext.Button', { | |
text: 'Click me', | |
renderTo: Ext.getBody(), | |
handler: function() { | |
location.reload(); | |
} | |
}); | |
}); | |
</script> | |
<!--App styles--> | |
<style type="text/css"> | |
.app { | |
/* Add app styles here */ | |
} | |
</style> | |
</head> | |
<body class="myApp"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment