@internal
(type: string, data?: GridStackNode[])
| 1849 | |
| 1850 | /** @internal */ |
| 1851 | protected _triggerEvent(type: string, data?: GridStackNode[]): GridStack { |
| 1852 | const event = data ? new CustomEvent(type, { bubbles: false, detail: data }) : new Event(type); |
| 1853 | // check if we're nested, and if so call the outermost grid to trigger the event |
| 1854 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
| 1855 | let grid: GridStack = this; |
| 1856 | while (grid.parentGridNode) grid = grid.parentGridNode.grid; |
| 1857 | grid.el.dispatchEvent(event); |
| 1858 | return this; |
| 1859 | } |
| 1860 | |
| 1861 | /** @internal */ |
| 1862 | protected _updateContainerHeight(): GridStack { |
no outgoing calls
no test coverage detected