Triggering enable and disable events on gridstack container
This commit is contained in:
parent
fc571d8b82
commit
816071a077
1 changed files with 2 additions and 0 deletions
|
|
@ -812,11 +812,13 @@
|
|||
GridStack.prototype.disable = function() {
|
||||
this.movable(this.container.children('.' + this.opts.item_class), false);
|
||||
this.resizable(this.container.children('.' + this.opts.item_class), false);
|
||||
this.container.trigger('disable');
|
||||
};
|
||||
|
||||
GridStack.prototype.enable = function() {
|
||||
this.movable(this.container.children('.' + this.opts.item_class), true);
|
||||
this.resizable(this.container.children('.' + this.opts.item_class), true);
|
||||
this.container.trigger('enable');
|
||||
};
|
||||
|
||||
GridStack.prototype.locked = function(el, val) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue