add remove_all method
This commit is contained in:
parent
60c2f0af71
commit
a52ae7a4dc
1 changed files with 8 additions and 0 deletions
|
|
@ -439,6 +439,14 @@
|
|||
this._update_container_height();
|
||||
};
|
||||
|
||||
GridStack.prototype.remove_all = function () {
|
||||
_.each(this.grid.nodes, function (node) {
|
||||
node.el.remove();
|
||||
});
|
||||
this.grid.nodes = [];
|
||||
this._update_container_height();
|
||||
};
|
||||
|
||||
GridStack.prototype.resizable = function (el, val) {
|
||||
el = $(el);
|
||||
el.each(function (index, el) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue