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:
Edit Location
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)
-
0
Hi,
You need to write a custom directive for that.
Please see this plunkr <a class="postlink" href="http://plnkr.co/edit/cu1TVKCY8ucYcT2AScJb?p=preview">http://plnkr.co/edit/cu1TVKCY8ucYcT2AScJb?p=preview</a>I hope it helps.
-
0
Okay, thanks for the info, I will have a look.