Created
May 31, 2012 18:15
-
-
Save ferentchak/2845161 to your computer and use it in GitHub Desktop.
Unsupported Cross Panel Communication Example
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.0p/sdk.js"></script> | |
<!--App code--> | |
<script type="text/javascript"> | |
Rally.onReady(function() { | |
Ext.define('CustomApp', { | |
extend: 'Rally.app.App', | |
componentCls: 'app', | |
mixins:['Rally.Messageable'], | |
launch: function() { | |
var brokenInTheFutureIdThatWillWorkForNow = Ext.Object.fromQueryString(window.location.href); | |
window.parent.Rally.Messages.subscribe("test",function(){console.error(brokenInTheFutureIdThatWillWorkForNow.panelOid,arguments);}); | |
window.parent.Rally.Messages.publish("test",brokenInTheFutureIdThatWillWorkForNow.panelOid); | |
//Write app code here | |
} | |
}); | |
Rally.launchApp('CustomApp', { | |
name: 'My Custom App' | |
}); | |
}); | |
</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