likeastore / ngDialog

Modals and popups provider for Angular.js applications
http://likeastore.github.io/ngDialog
3.14k stars 692 forks source link

[Question] Draggable modal #587

Open oiacrasec opened 6 years ago

oiacrasec commented 6 years ago

What version of ng-dialog are you using? latest

What version of AngularJS are you using? 1.6

What browsers are affected? all

Please describe the issue Is there a way to apply easily a draggable option?

oiacrasec commented 6 years ago

Found a way, but i dont think this is an ellegant method.

use jquery ui and inside controller initialization put:

$scope.$on('ngDialog.opened', function (e, $dialog) {
  $(".ngdialog").draggable({
    handle: ".ngdialog-content"
  });
});