Create Dojo Dialog in HTML

  • January 30, 2013

You can create a dojo dialog in html code and using the javascript set when the dialog is shown as following.

 

First declare your dialog:

<div class=”dijitHidden”>
<div data-dojo-type=”dijit.Dialog” data-dojo-props=”title:’Dialog Title'” id=”dialogId”>
<div>
<p><b>This div holds the body of the dialog</b></p>
</div>

<button onclick=”dijit.byId(‘dialogId’).hide();”>Ok</button>
</div>
</div>

To show this dialog use the javascript code as such:

dijit.byId(‘contactAdminToCompleteSettingsDialog’).show();




No Comments


You can leave the first : )



Leave a Reply

Your email address will not be published. Required fields are marked *