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 !
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.