jaumard / ngx-dashboard

Dashboard library for angular 4 and more
https://jaumard.github.io/ngx-dashboard/demo/demoDist/index.html
MIT License
71 stars 31 forks source link

disable drag for a specific id #26

Closed waleed-sarwar closed 7 years ago

waleed-sarwar commented 7 years ago

hi, i am using the widget tag and i want to disable the drag functionality for specific widgets is it possible?? the disableDrag() applies on whole dashboard but i want for specific widget

many thanks

jaumard commented 7 years ago

It's not possible to disable only one and I don't think it make sense as you can move this widget anyway by moving others around, but I think you can do it by intercepting any mouse/touch event on this widget and stop the propagation, should do the job. I don't think I will implement this into this module.