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

Function findEl

spec/gridstack-spec.ts:12–14  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

10 return grid.engine.nodes.find(n => n.id === id)!;
11 };
12 let findEl = function(id: string): GridItemHTMLElement {
13 return find(id).el!;
14 };
15
16 // grid has 4x2 and 4x4 top-left aligned - used on most test cases
17 let gridHTML =

Callers 1

gridstack-spec.tsFile · 0.70

Calls 1

findFunction · 0.85

Tested by

no test coverage detected