(id: string)
| 5 | |
| 6 | let grid: GridStack; |
| 7 | let findEl = function(id: string): GridItemHTMLElement { |
| 8 | return grid.engine.nodes.find(n => n.id === id)!.el!; |
| 9 | }; |
| 10 | let findSubEl = function(id: string, index = 0): GridItemHTMLElement { |
| 11 | return grid.engine.nodes[index].subGrid?.engine.nodes.find(n => n.id === id)!.el!; |
| 12 | }; |