dsmorse / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns

Home Page:http://dsmorse.github.io/gridster.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FEATURE REQUEST: Resize only certain items

timothymarois opened this issue · comments

Allow resizing only on specific items. I don't think this feature exists, at least no in the docs or with testing. But would be nice to set only some items that are not allowed to be resized. This should be set by class name.

Something like this as its configuration:

resize: {
      enabled: true,
      selector: '.resizeallowed'
},

Looks like you can "somewhat" achieve this by doing:

handle_append_to : 'resizme',
handle_class: 'gs-resize-handle'

Adding the class resizme and this span within the box you want to resize.

<span class="gs-resize-handle gs-resize-handle-both"></span>

This worked for me, the other boxes did not show the resize option.

You can not add axes: 'x' to the resize option. It will crash the grid