You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`static_grid` - makes grid static (default `false`). If true widgets are not movable/resizable. You don't even need jQueryUI draggable/resizable.
136
+
-`static_grid` - makes grid static (default `false`). If true widgets are not movable/resizable. You don't even need jQueryUI draggable/resizable. A CSS class `grid-stack-static` is also added to the container.
136
137
-`vertical_margin` - vertical gap size (default: `20`)
137
138
-`width` - amount of columns (default: `12`)
138
139
@@ -313,6 +314,22 @@ Set the minHeight for a widget.
313
314
-`el` - widget to modify.
314
315
-`val` - A numeric value of the number of rows
315
316
317
+
### movable(el, val)
318
+
319
+
Enables/Disables moving.
320
+
321
+
-`el` - widget to modify
322
+
-`val` - if `true` widget will be draggable.
323
+
324
+
### move(el, x, y)
325
+
326
+
Changes widget position
327
+
328
+
Parameters:
329
+
330
+
-`el` - widget to move
331
+
-`x`, `y` - new position. If value is `null` or `undefined` it will be ignored.
332
+
316
333
### remove_widget(el, detach_node)
317
334
318
335
Removes widget from the grid.
@@ -335,28 +352,18 @@ Parameters:
335
352
-`el` - widget to resize
336
353
-`width`, `height` - new dimensions. If value is `null` or `undefined` it will be ignored.
337
354
338
-
### move(el, x, y)
339
-
340
-
Changes widget position
341
-
342
-
Parameters:
343
-
344
-
-`el` - widget to move
345
-
-`x`, `y` - new position. If value is `null` or `undefined` it will be ignored.
346
-
347
355
### resizable(el, val)
348
356
349
357
Enables/Disables resizing.
350
358
351
359
-`el` - widget to modify
352
360
-`val` - if `true` widget will be resizable.
353
361
354
-
### movable(el, val)
362
+
### set_static(static_value)
355
363
356
-
Enables/Disables moving.
364
+
Toggle the grid static state. Also toggle the `grid-stack-static` class.
357
365
358
-
-`el` - widget to modify
359
-
-`val` - if `true` widget will be draggable.
366
+
-`static_value` - if `true` the grid become static.
0 commit comments