MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / enable

Method enable

src/gridstack.ts:2316–2322  ·  view source on GitHub ↗

* Re-enables widgets moving/resizing - see disable(). * Note: This is a no-op for static grids. * * This is a shortcut for: * ```typescript * grid.enableMove(true); * grid.enableResize(true); * ``` * * @param recurse if true (default), sub-grids also get updated * @retu

(recurse = true)

Source from the content-addressed store, hash-verified

2314 * grid.enable(false);
2315 */
2316 public enable(recurse = true): GridStack {
2317 if (this.opts.staticGrid) return;
2318 this.enableMove(true, recurse);
2319 this.enableResize(true, recurse);
2320 this._triggerEvent('enable');
2321 return this;
2322 }
2323
2324 /**
2325 * Enables/disables widget moving for all widgets. No-op for static grids.

Calls 3

enableMoveMethod · 0.95
enableResizeMethod · 0.95
_triggerEventMethod · 0.95

Tested by

no test coverage detected