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.04k stars 1.2k forks source link

How can we set resizable option for particular widget ? #501

Open harshmsp opened 9 years ago

harshmsp commented 9 years ago

I have 12*10 widgets, and from this list i want to give some widget re-sizable and some not ? Is there any options to fix that ?

var collection = [ ['

  • Box 1
  • ', 12, 1, 1, 1], ['
  • Box 2
  • ', 1, 1, 1, 2], ] $.each(collection, function (i, widget) { gridster.add_widget.apply(gridster, widget) });

    from Above example i want to set Box 1 resizable and box 2 not so what's the correct way ?

    bondt commented 9 years ago

    Have you tried setting a max size for the widgets?