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
Draggable Modal
Bootstrap Modal Draggable
Use the modal header as a draggable handler
Preview
Front-End Code
Edit
<!DOCTYPE html> <html> <head> <title>Draggable 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> <button class="btn btn-default" onclick="dialog.open()">Reopen</button> <div id="dialog" style="display:none"> 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> <script type="text/javascript"> var dialog; $(document).ready(function () { dialog = $("#dialog").dialog({ uiLibrary: 'bootstrap', title: 'Drag Me' }); }); </script> </body> </html>
;