Create a new widget with the given html and add it to the grid.
The string representing the HTML of the widget or the HTMLElement.
The number of rows the widget occupies horizontally. Defaults to 1.
The number of columns the widget occupies vertically. Defaults to 1.
The column the widget should start in.
The row the widget should start in.
Returns the jQuery wrapped HTMLElement representing the widget that was just created.
Disables dragging.
Returns the instance of the Gridster class.
Enables dragging.
Returns the instance of the Gridster class.
Remove a widget from the grid.
The jQuery wrapped HTMLElement you want to remove.
Boolean If true widgets below the removed one will not move up.
Callback function executed when the widget is removed.
Returns the instance of the Gridster class.
Change the size of a widget.
The jQuery wrapped HTMLElement that represents the widget is going to be resized.
The number of rows that the widget is going to span. Defaults to current size_x.
The number of columns that the widget is going to span. Defaults to current size_y.
Callback function wehn the widget is finished resizing.
Returns $widget.
Returns a serialized array of the widgets in the grid.
The collection of jQuery wrap ed HTMLElements you want to serialize. If no argument is passed a l widgets will be serialized.
Array<T>
Returns an array of objects with the data specified in the serialized_params option.
Returns a serialized array of the widgets that have changed their position.
Array<T>
Returns an array of objects with the data specified in the serialized_params option.