MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / findEl

Function findEl

spec/regression-spec.ts:7–9  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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 };

Callers 1

regression-spec.tsFile · 0.70

Calls 1

findMethod · 0.80

Tested by

no test coverage detected