@@ -29,6 +29,8 @@ Inspired by [gridster.js](http://gridster.net). Built with love.
29
29
- [ cell_height()] ( #cell_height )
30
30
- [ cell_height(val)] ( #cell_heightval )
31
31
- [ cell_width()] ( #cell_width )
32
+ - [ disable()] ( #disable )
33
+ - [ enable()] ( #enable )
32
34
- [ get_cell_from_pixel(position)] ( #get_cell_from_pixelposition )
33
35
- [ locked(el, val)] ( #lockedel-val )
34
36
- [ remove_widget(el)] ( #remove_widgetel )
@@ -227,6 +229,24 @@ grid.cell_height(grid.cell_width() * 1.2);
227
229
228
230
Gets current cell width.
229
231
232
+ ### disable()
233
+
234
+ Disables widgets moving/resizing. This is a shortcut for:
235
+
236
+ ``` javascript
237
+ grid .movable (' .grid-stack-item' , false );
238
+ grid .resizable (' .grid-stack-item' , false );
239
+ ```
240
+
241
+ ### enable()
242
+
243
+ Enables widgets moving/resizing. This is a shortcut for:
244
+
245
+ ``` javascript
246
+ grid .movable (' .grid-stack-item' , true );
247
+ grid .resizable (' .grid-stack-item' , true );
248
+ ```
249
+
230
250
### get_cell_from_pixel(position)
231
251
232
252
Get the position of the cell under a pixel on screen.
@@ -469,6 +489,7 @@ Changes
469
489
470
490
#### v0.2.3 (development version)
471
491
492
+ - add ` disable ` /` enable ` methods
472
493
- add ` get_cell_from_pixel ` (thanks to @juchi )
473
494
- AMD support
474
495
- fix nodes sorting
0 commit comments