* Temporarily disables widgets moving/resizing. * If you want a more permanent way (which freezes up resources) use `setStatic(true)` instead. * * Note: This is a no-op for static grids. * * This is a shortcut for: * ```typescript * grid.enableMove(false); * grid.enableResize
(recurse = true)
| 2287 | * grid.disable(false); |
| 2288 | */ |
| 2289 | public disable(recurse = true): GridStack { |
| 2290 | if (this.opts.staticGrid) return; |
| 2291 | this.enableMove(false, recurse); |
| 2292 | this.enableResize(false, recurse); |
| 2293 | this._triggerEvent('disable'); |
| 2294 | return this; |
| 2295 | } |
| 2296 | /** |
| 2297 | * Re-enables widgets moving/resizing - see disable(). |
| 2298 | * Note: This is a no-op for static grids. |
no test coverage detected