valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

BsModalService (Component) & Angular2 Draggable #4789

Open volkanokcu opened 5 years ago

volkanokcu commented 5 years ago

I can use static modal with draggable. But cant do that with BsModalService component modal. If i open draggable div in component only content will be draggable, no effect for main panel. How can i add draggable directive to outer modal? Thanks...

Same question is here; https://github.com/valor-software/ngx-bootstrap/issues/2002#issuecomment-336424460

volkanokcu commented 5 years ago

Any suggestion?

valorkin commented 5 years ago

In short: in order to do so you will need to redefine modal container (outer modal part) so you could make it draggable. I would say it is possible, but an easy thing to do,

Add an option to pass modal outer container component into bsmodalservice

@domainv please mark it as enhancement to modals

volkanokcu commented 5 years ago

Add an option to pass modal outer container component into bsmodalservice I think this is the feature plan? Woud be nice also add ModalOptions to resizeable property. In short: in order to do so you will need to redefine modal container (outer modal part) so you could make it draggable. How can i redefine outer modal container? Thanks for the comment.

valorkin commented 5 years ago

Only via PR

valorkin commented 5 years ago

Or you actually can inherit from it and redifine for whole app, but it will be a hard call