Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dojo non-modal dialog

Is there a way to create a non-modal dialog window using dojo? jQuery UI supports both modal and non-modal dialog boxes. I am trying to convert a SilverLight application to HTML/javascript and finding it difficult to create non-modal windows using dojo.

like image 333
Vu Dang Avatar asked Aug 30 '11 16:08

Vu Dang


2 Answers

You can set the display of the underlay to 'none', and you will have a non-modal Dialog. To do that, set the class of the Dialog to 'nonModal' (that's just a convention I'm creating right now), and in the CSS for the page, have an entry for .nonModal_underlay.

require(['dijit/form/Button','dijit/Dialog'],
  function (Button, Dialog) {
    var d = new Dialog({
                    'title':'I am nonmodal',
                    'class':'nonModal'
                  });
  });

.nonModal_underlay {
    display:none;
}
like image 144
Roy J Avatar answered Oct 25 '22 05:10

Roy J


you might try dojox.layout.FloatingPane

like image 37
peller Avatar answered Oct 25 '22 04:10

peller