@@ -39,6 +39,7 @@ Inspired by [gridster.js](http://gridster.net). Built with love.
39
39
- [ move(el, x, y)] ( #moveel-x-y )
40
40
- [ resizable(el, val)] ( #resizableel-val )
41
41
- [ movable(el, val)] ( #movableel-val )
42
+ - [ update(el, x, y, width, height)] ( #updateel-x-y-width-height )
42
43
- [ will_it_fit(x, y, width, height, auto_position)] ( #will_it_fitx-y-width-height-auto_position )
43
44
- [ Utils] ( #utils )
44
45
- [ GridStackUI.Utils.sort(nodes, dir, width)] ( #gridstackuiutilssortnodes-dir-width )
@@ -313,6 +314,16 @@ Enables/Disables moving.
313
314
- ` el ` - widget to modify
314
315
- ` val ` - if ` true ` widget will be draggable.
315
316
317
+ ### update(el, x, y, width, height)
318
+
319
+ Parameters:
320
+
321
+ - ` el ` - widget to move
322
+ - ` x ` , ` y ` - new position. If value is ` null ` or ` undefined ` it will be ignored.
323
+ - ` width ` , ` height ` - new dimensions. If value is ` null ` or ` undefined ` it will be ignored.
324
+
325
+ Updates widget position/size.
326
+
316
327
### will_it_fit(x, y, width, height, auto_position)
317
328
318
329
Returns ` true ` if the ` height ` of the grid will be less the vertical constraint. Always returns ` true ` if grid doesn't
@@ -605,6 +616,7 @@ Changes
605
616
606
617
#### v0.2.3 (development version)
607
618
619
+ - add ` update ` method
608
620
- allow to override ` resizable ` /` draggable ` options
609
621
- add ` disable ` /` enable ` methods
610
622
- add ` get_cell_from_pixel ` (thanks to @juchi )
0 commit comments