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

Possibility to move the modals #448

Open
nkthuan opened this issue Nov 27, 2019 · 1 comment
Open

Possibility to move the modals #448

nkthuan opened this issue Nov 27, 2019 · 1 comment

Comments

@nkthuan
Copy link

nkthuan commented Nov 27, 2019

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.

@ManCodeB
Copy link

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.

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

2 participants