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 !
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.