@@ -39,6 +39,7 @@ Inspired by [gridster.js](http://gridster.net). Built with love.
3939 - [ move(el, x, y)] ( #moveel-x-y )
4040 - [ resizable(el, val)] ( #resizableel-val )
4141 - [ movable(el, val)] ( #movableel-val )
42+ - [ update(el, x, y, width, height)] ( #updateel-x-y-width-height )
4243 - [ will_it_fit(x, y, width, height, auto_position)] ( #will_it_fitx-y-width-height-auto_position )
4344 - [ Utils] ( #utils )
4445 - [ GridStackUI.Utils.sort(nodes, dir, width)] ( #gridstackuiutilssortnodes-dir-width )
@@ -313,6 +314,16 @@ Enables/Disables moving.
313314- ` el ` - widget to modify
314315- ` val ` - if ` true ` widget will be draggable.
315316
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+
316327### will_it_fit(x, y, width, height, auto_position)
317328
318329Returns ` 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
605616
606617#### v0.2.3 (development version)
607618
619+ - add ` update ` method
608620- allow to override ` resizable ` /` draggable ` options
609621- add ` disable ` /` enable ` methods
610622- add ` get_cell_from_pixel ` (thanks to @juchi )
0 commit comments