jive-sdk
Version:
Node.js SDK for Jive Software to assist with the development of add-ons
25 lines (17 loc) • 615 B
HTML
<html>
<body>
<div id="j-content"></div>
<script>
gadgets.util.registerOnLoadHandler(function () {
gadgets.actions.updateAction({
id: "com.jivesoftware.jwdemo.placeAction", // Same action id from app.xml
callback: init
});
});
function init(ctx) {
console.log('Context: ',ctx);
$("#j-content").html('The associated place for this action is '+ctx.jive.content.type + ' / ' + ctx.jive.content.id);
}
</script>
</body>
</html>