Try our conversational search powered by Generative AI!

dojo - close all dialog opened before

Vote:
 

hi

i"m writing dojo property that open 4 dialog one after the other, i want the last child to close all of them togther.

what is the best weay to close them all ?

also can someone point me to where i can get some insight on sending infotrmation between these dialogs, or events ?

#147210
Apr 07, 2016 16:09
Vote:
 

maybe you could use Dojo publish subscribe?

Publish when want to close dialogs

this.setValueAttr(value)
{
    this._set("value", value)
    topic.publish("closeAllDialogs", value);
}

Then subscribe to the event and close all dialogs:

postMixingPropertis: function() 
{
   topic.subscribe("closeAllDialogs", function(value)
   {
       this.reloadOptions(value);
   });
}
#147215
Apr 07, 2016 17:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.