uiLibrary : string (bootstrap|materialdesign)Default: undefined

The name of the UI library that is going to be in use. Currently we support Material Design and Bootstrap.

The css file for bootstrap should be manually included if you use bootstrap.

Examples

Bootstrap 3

    
 <div id="dialog">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
 <script>
     $("#dialog").dialog({
         uiLibrary: 'bootstrap'
     });
 </script>

  

Bootstrap 4

    
 <div id="dialog">
     <div data-role="body">Lorem ipsum dolor sit amet, consectetur adipiscing elit...</div>
     <div data-role="footer">
         <button class="btn btn-default" data-role="close">Cancel</button>
         <button class="btn btn-default" onclick="dialog.close()">OK</button>
     </div>
 </div>
 <script>
     var dialog = $("#dialog").dialog({
         uiLibrary: 'bootstrap4'
     });
 </script>

  

Material Design

    
 <div id="dialog">
   <div data-role="body">
     Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
     Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
   </div>
   <div data-role="footer">
     <button class="gj-button-md" onclick="dialog.close()">OK</button>
     <button class="gj-button-md" data-role="close">Cancel</button>
   </div>
 </div>
 <script>
     var dialog = $("#dialog").dialog({
         uiLibrary: 'materialdesign',
         resizable: true
     });
 </script>