Set image widget URL property
Functions covered
Composition structure
Composition script
Last updated
Last updated
(function() {
return {
init: function(comp, context) {
// get reference to the logo widget
const wiLowerLogo = comp.findWidget("lowerLogo")[0];
// log widget object to the console
console.log(wiLowerLogo);
// update the image URL
wiLowerLogo.setPayload({
"image": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
});
},
close: function(comp, context) {}
};
})();