Base solution for your next web application
Open Closed

Draggable modal #910


User avatar
0
lauriep created

Is it possible to make modals draggable?

I have tried adding the 'draggable-modal' class to various <DIV> elements on the modal like this:

And by passing in options in the JS call like this:

vm.editLocation = function () {
                var modalInstance = $modal.open({
                    templateUrl: '~/App/tenant/views/location/createOrEditLocationModal.cshtml',
                    controller: 'common.views.users.createOrEditLocationModal as vm',
                    windowTopClass: 'draggable-modal',
                    backdrop: 'static'//,

Any ideas please?


2 Answer(s)