You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val ? this.opts.staticGrid=true : deletethis.opts.staticGrid;
1139
1139
this._setupRemoveDrop();
1140
1140
this._setupAcceptWidget();
1141
1141
this.engine.nodes.forEach(n=>{
@@ -1686,31 +1686,31 @@ export class GridStack {
1686
1686
* Enables/Disables dragging by the user of specific grid element. If you want all items, and have it affect future items, use enableMove() instead. No-op for static grids.
1687
1687
* IF you are looking to prevent an item from moving (due to being pushed around by another during collision) use locked property instead.
1688
1688
* @param els widget or selector to modify.
1689
-
* @param val if true widget will be draggable.
1689
+
* @param val if true widget will be draggable, assuming the parent grid isn't noMove or static.
if(this.opts.staticGrid)returnthis;// can't move a static grid!
1693
1693
GridStack.getElements(els).forEach(el=>{
1694
-
letnode=el.gridstackNode;
1695
-
if(!node)return;
1696
-
if(val)deletenode.noMove;elsenode.noMove=true;
1697
-
this._prepareDragDropByNode(node);// init DD if need be, and adjust
1694
+
letn=el.gridstackNode;
1695
+
if(!n)return;
1696
+
val ? deleten.noMove : n.noMove=true;
1697
+
this._prepareDragDropByNode(n);// init DD if need be, and adjust
1698
1698
});
1699
1699
returnthis;
1700
1700
}
1701
1701
1702
1702
/**
1703
1703
* Enables/Disables user resizing of specific grid element. If you want all items, and have it affect future items, use enableResize() instead. No-op for static grids.
1704
1704
* @param els widget or selector to modify
1705
-
* @param val if true widget will be resizable.
1705
+
* @param val if true widget will be resizable, assuming the parent grid isn't noResize or static.
0 commit comments