Best practices
Communication between sub-compositions
Receiving data in a sub-composition
(function() {
return {
init: function(comp, context) {
console.log("Initialize Composition script " + comp.name);
// extend the composition object
// receive data in the updateContent function
comp.updateContent = function(data) {
console.log("updateContent() - data =", data);
}
},
close: function(comp, context) {
console.log("Close Composition script " + comp.name);
}
};
})();Sending data to a sub-composition
Updating overlay content from the composition script
Reading control nodes, generating HTML, and updating the widget’s text property
Last updated