ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

How can i disable ( not drag & drop) one element of gridster #195

Open sameer123 opened 11 years ago

shaundon commented 11 years ago

Just to clarify, you're asking how you can prevent drag and drop on a single widget, while still allowing other widgets to be moved, right?

ghost commented 11 years ago

I have the same question (or at least the question you (shaundon) clarified :)

davidyarham commented 10 years ago

You could hide the resizer handle for a given widget based on a class name for using CSS.

something like this:

  • and then in your css.

    .no-resize .gs-resize-handle-both{ display:none; }

    shaundon commented 10 years ago

    Good idea :+1: