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