GIJGO
Examples
Documentation
Report a Bug
Download
Draggable Modal
Bootstrap Modal
Bootstrap 4 Modal
Bootstrap 5 Modal
Material Design
Events Logger
HTML Configuration
Gijgo.com
Dialog
Examples
Bootstrap Modal
Bootstrap Modal Resizable
Drag modal borders in order to resize
Preview
Front-End Code
Edit
<!DOCTYPE html> <html> <head> <title>Resizable Bootstrap Modal</title> <meta charset="utf-8" /> <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> <script src="https://unpkg.com/gijgo@1.9.14/js/gijgo.min.js" type="text/javascript"></script> <link href="https://unpkg.com/gijgo@1.9.14/css/gijgo.min.css" rel="stylesheet" type="text/css" /> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> </head> <body> <ul> <li>Click on the dialog header and move the mouse in order to drag the dialog.</li> <li>Click on the dialog borders and move the mouse in order to resize the dialog.</li> </ul> <button class="btn btn-default" onclick="dialog.open()">Reopen</button> <div id="dialog" title="Resizable Bootstrap Modal" width="350"> <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. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> <div data-role="footer"> <button class="btn" data-role="close">Cancel</button> <button class="btn" onclick="dialog.close()">OK</button> </div> </div> <script type="text/javascript"> var dialog; $(document).ready(function () { dialog = $("#dialog").dialog({ uiLibrary: 'bootstrap', resizable: true, minWidth: 200, maxWidth: 600, minHeight: 200, maxHeight: 450, height: 350, modal: true }); }); </script> </body> </html>
;