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

Function findSubEl

spec/regression-spec.ts:10–12  ·  view source on GitHub ↗
(id: string, index = 0)

Source from the content-addressed store, hash-verified

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 };
13
14
15 // empty grid

Callers 1

regression-spec.tsFile · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected