angular-dialog-service icon indicating copy to clipboard operation
angular-dialog-service copied to clipboard

how can I make the dialog draggable?

Open firecentaur opened this issue 9 years ago • 6 comments

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

firecentaur avatar Nov 14 '15 20:11 firecentaur

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

wcomartin avatar Nov 17 '15 14:11 wcomartin

Thank you William!

sjuranek avatar Feb 13 '16 20:02 sjuranek

@wcomartin where is jq handler

introspection3 avatar Aug 24 '17 02:08 introspection3

@sjuranek where is jq handler thanks

introspection3 avatar Aug 24 '17 02:08 introspection3

hello

introspection3 avatar Aug 24 '17 02:08 introspection3

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

wcomartin avatar Aug 26 '17 17:08 wcomartin