Skip to content

Instantly share code, notes, and snippets.

@ferentchak
Created September 6, 2012 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferentchak/3661152 to your computer and use it in GitHub Desktop.
Save ferentchak/3661152 to your computer and use it in GitHub Desktop.
Show how to reload an App
<!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