Merge pull request #52 from juchi/return_new_widgets
Return new widget on add_widget() call
This commit is contained in:
commit
396086b328
2 changed files with 3 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ $('.grid-stack').on('resizestop', function (event, ui) {
|
|||
|
||||
### add_widget(el, x, y, width, height, auto_position)
|
||||
|
||||
Creates new widget.
|
||||
Creates new widget and returns it.
|
||||
|
||||
Parameters:
|
||||
|
||||
|
|
|
|||
|
|
@ -582,6 +582,8 @@
|
|||
this.container.append(el);
|
||||
this._prepare_element(el);
|
||||
this._update_container_height();
|
||||
|
||||
return el;
|
||||
};
|
||||
|
||||
GridStack.prototype.will_it_fit = function (x, y, width, height, auto_position) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue