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
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 !
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.