openReturns: dialog

Opens the dialog.

Fires

opening, opened

Parameters

NameTypeDescription
title {String} The dialog title.

Examples

Sample

    
 <div id="dialog" style="display: none">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <button onclick="dialog.open()" class="gj-button-md">Open Dialog</button>
 <script>
     var dialog = $('#dialog').dialog({
         autoOpen: false
     });
 </script>

  

Title

    
 <div id="dialog" style="display: none">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <button onclick="dialog.open('Custom Text')" class="gj-button-md">Open Dialog</button>
 <script>
     var dialog = $('#dialog').dialog({
         autoOpen: false
     });
 </script>