call given event callback on our main top-most grid (if we're nested)
(event: Event, target: GridItemHTMLElement)
| 2974 | |
| 2975 | /** call given event callback on our main top-most grid (if we're nested) */ |
| 2976 | protected triggerEvent(event: Event, target: GridItemHTMLElement) { |
| 2977 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
| 2978 | let grid: GridStack = this; |
| 2979 | while (grid.parentGridNode) grid = grid.parentGridNode.grid; |
| 2980 | if (grid._gsEventHandler[event.type]) { |
| 2981 | grid._gsEventHandler[event.type](event, target); |
| 2982 | } |
| 2983 | } |
| 2984 | |
| 2985 | /** @internal called when item leaving our area by either cursor dropout event |
| 2986 | * or shape is outside our boundaries. remove it from us, and mark temporary if this was |
no outgoing calls
no test coverage detected