add disable/enable methods
This commit is contained in:
parent
4368166e1c
commit
be1f6a420f
3 changed files with 12 additions and 2 deletions
2
dist/gridstack.min.js
vendored
2
dist/gridstack.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/gridstack.min.map
vendored
2
dist/gridstack.min.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -651,6 +651,16 @@
|
|||
return this;
|
||||
};
|
||||
|
||||
GridStack.prototype.disable = function () {
|
||||
this.movable(this.container.find('.' + this.opts.item_class), false);
|
||||
this.resizable(this.container.find('.' + this.opts.item_class), false);
|
||||
};
|
||||
|
||||
GridStack.prototype.enable = function () {
|
||||
this.movable(this.container.find('.' + this.opts.item_class), true);
|
||||
this.resizable(this.container.find('.' + this.opts.item_class), true);
|
||||
};
|
||||
|
||||
GridStack.prototype.locked = function (el, val) {
|
||||
el = $(el);
|
||||
el.each(function (index, el) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue