ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

Possibility to move the modals

Open ramcrys opened this issue 5 years ago • 1 comments

Hi everyone, I have a question about a feature of ngx-modialog (not sure if it exists or not, so this is just a question) Is it possible in ngx-modialog to move the modal once it's opened ? In particular, when cursor is near the top of the modal header, an icon appears that shows that it's movable, and we can click on that to move the modal around the page.

Environment:

  • Angular version: 6.1.0
  • ngx-modialog version: 5.0.1
  • Browser: chrome, Firefox, IE

Thanks in advance.

ramcrys avatar Nov 27 '19 06:11 ramcrys

Well, actually this behaviour should be possible by just adding cdkDrag to your modal window.

See: https://material.angular.io/cdk/drag-drop/overview

cdk is maintained by Angular Material but you do not have to use material design at all. Just import the @angular/cdk/drag-drop module and you are good to go.

ManCodeB avatar Dec 29 '19 21:12 ManCodeB