API make_widget functionality
This commit is contained in:
parent
fc571d8b82
commit
bee6ff6e31
2 changed files with 27 additions and 0 deletions
|
|
@ -735,6 +735,15 @@
|
|||
return el;
|
||||
};
|
||||
|
||||
GridStack.prototype.make_widget = function(el) {
|
||||
el = $(el);
|
||||
this._prepare_element(el);
|
||||
this._update_container_height();
|
||||
this._trigger_change_event(true);
|
||||
|
||||
return el;
|
||||
};
|
||||
|
||||
GridStack.prototype.will_it_fit = function(x, y, width, height, auto_position) {
|
||||
var node = {x: x, y: y, width: width, height: height, auto_position: auto_position};
|
||||
return this.grid.can_be_placed_with_respect_to_height(node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue