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

BsModalService (Component) & Angular2 Draggable

Open volkanokcu opened this issue 8 years ago • 5 comments

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 avatar Nov 08 '18 07:11 volkanokcu

Any suggestion?

volkanokcu avatar Nov 15 '18 14:11 volkanokcu

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

valorkin avatar Nov 21 '18 08:11 valorkin

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.

volkanokcu avatar Nov 21 '18 13:11 volkanokcu

Only via PR

valorkin avatar Nov 21 '18 18:11 valorkin

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

valorkin avatar Nov 21 '18 18:11 valorkin