build js
This commit is contained in:
parent
f7e041586f
commit
5bbd8d5f54
4 changed files with 21 additions and 3 deletions
18
dist/gridstack.js
vendored
18
dist/gridstack.js
vendored
|
|
@ -416,6 +416,9 @@
|
|||
this.opts.is_nested = is_nested;
|
||||
|
||||
this.container.addClass(this.opts._class);
|
||||
|
||||
this._set_static_class();
|
||||
|
||||
if (is_nested) {
|
||||
this.container.addClass('grid-stack-nested');
|
||||
}
|
||||
|
|
@ -946,6 +949,21 @@
|
|||
return this.grid.is_area_empty(x, y, width, height);
|
||||
};
|
||||
|
||||
GridStack.prototype.set_static = function(static_value) {
|
||||
this.opts.static_grid = (static_value === true);
|
||||
this._set_static_class();
|
||||
};
|
||||
|
||||
GridStack.prototype._set_static_class = function() {
|
||||
var static_class_name = 'grid-stack-static';
|
||||
|
||||
if (this.opts.static_grid === true) {
|
||||
this.container.addClass(static_class_name);
|
||||
} else {
|
||||
this.container.removeClass(static_class_name);
|
||||
}
|
||||
};
|
||||
|
||||
scope.GridStackUI = GridStack;
|
||||
|
||||
scope.GridStackUI.Utils = Utils;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue