Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Draggable modal #587

Open
oiacrasec opened this issue Feb 19, 2018 · 1 comment
Open

[Question] Draggable modal #587

oiacrasec opened this issue Feb 19, 2018 · 1 comment

Comments

@oiacrasec
Copy link

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
Copy link
Author

oiacrasec commented Feb 19, 2018

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"
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant