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

how can I make the dialog draggable? #153

Open
firecentaur opened this issue Nov 14, 2015 · 6 comments
Open

how can I make the dialog draggable? #153

firecentaur opened this issue Nov 14, 2015 · 6 comments

Comments

@firecentaur
Copy link

Hi there, I would like for the user to be able to drag / move the dialog around the screen. How can I do this?

@wcomartin
Copy link
Contributor

I created a directive attached the dialogs class, which just adds the draggable jq handler.

.directive('modalDialog', function(){
  return {
    restrict: "C",
    link: function(scope, element, attrs){
      element.draggable({
        handle: ".modal-header"
      })
    }
  };
});

@sjuranek
Copy link

Thank you William!

@introspection3
Copy link

@wcomartin where is jq handler

@introspection3
Copy link

@sjuranek where is jq handler thanks

@introspection3
Copy link

hello

@wcomartin
Copy link
Contributor

sorry about the delayed response, but its part of JqueryUI https://jqueryui.com/draggable/

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

4 participants