* use before calling a bunch of `addWidget()` to prevent un-necessary relayouts in between (more efficient) * and get a single event callback. You will see no changes until `batchUpdate(false)` is called.
(flag = true)
| 831 | * and get a single event callback. You will see no changes until `batchUpdate(false)` is called. |
| 832 | */ |
| 833 | public batchUpdate(flag = true): GridStack { |
| 834 | this.engine.batchUpdate(flag); |
| 835 | if (!flag) { |
| 836 | this._updateContainerHeight(); |
| 837 | this._triggerRemoveEvent(); |
| 838 | this._triggerAddEvent(); |
| 839 | this._triggerChangeEvent(); |
| 840 | } |
| 841 | return this; |
| 842 | } |
| 843 | |
| 844 | /** |
| 845 | * Gets the current cell height in pixels. This takes into account the unit type and converts to pixels if necessary. |
no test coverage detected