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

Method offAll

src/gridstack.ts:1379–1382  ·  view source on GitHub ↗

* Remove all event handlers from the grid. This is useful for cleanup when destroying a grid. * * @returns the grid instance for chaining * * @example * grid.offAll(); // Remove all event listeners

()

Source from the content-addressed store, hash-verified

1377 * grid.offAll(); // Remove all event listeners
1378 */
1379 public offAll(): GridStack {
1380 Object.keys(this._gsEventHandler).forEach((key: GridStackEvent) => this.off(key));
1381 return this;
1382 }
1383
1384 /**
1385 * Removes widget from the grid.

Callers 1

destroyMethod · 0.95

Calls 1

offMethod · 0.95

Tested by

no test coverage detected