* 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
()
| 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. |