Hello,
Is there a way to detect that the widget settings page is closing? (i.e. when the user clicks on the X or on the Cancel button)
Thanks
Solved! Go to Solution.
Mathieu,
Sure here is some code:
postCreate: function() { var settingsDom = dojoQuery(".jimu-popup.widget-setting-popup")[0]; var aWidget = dijit.getEnclosingWidget(settingsDom); aspect.before(aWidget, "onClose", this.sendAlert); }, sendAlert: function() { alert("closing"); },
Mathieu,
Sure here is some code:
postCreate: function() { var settingsDom = dojoQuery(".jimu-popup.widget-setting-popup")[0]; var aWidget = dijit.getEnclosingWidget(settingsDom); aspect.before(aWidget, "onClose", this.sendAlert); }, sendAlert: function() { alert("closing"); },
Nice hack Robert !