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
Copy file name to clipboardExpand all lines: doc/README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -491,7 +491,8 @@ gap between grid item and content (default?: 10). This will set all 4 sides and
491
491
492
492
### `movable(el, val)`
493
493
494
-
Enables/Disables moving.
494
+
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.
495
+
IF you are looking to prevent an item from moving (due to being pushed around by another during collision) use locked property instead.
495
496
496
497
-`el` - widget to modify
497
498
-`val` - if `true` widget will be draggable.
@@ -516,7 +517,7 @@ Parameters:
516
517
517
518
### `resizable(el, val)`
518
519
519
-
Enables/Disables resizing.
520
+
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.
Copy file name to clipboardExpand all lines: src/gridstack.ts
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1468,13 +1468,14 @@ export class GridStack {
1468
1468
publicstaticsetupDragIn(dragIn?: string,dragInOptions?: DDDragInOpt): void{/* implemented in gridstack-dd.ts */}
1469
1469
1470
1470
/**
1471
-
* Enables/Disables moving of specific grid elements. If you want all items, and have it stay, use enableMove() instead. No-op for static grids.
1471
+
* 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.
1472
+
* IF you are looking to prevent an item from moving (due to being pushed around by another during collision) use locked property instead.
* Enables/Disables resizing of specific grid elements. If you want all items, and have it stay, use enableResize() instead. No-op for static grids.
1478
+
* 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.
0 commit comments