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

Method findCacheLayout

src/gridstack-engine.ts:1233–1235  ·  view source on GitHub ↗
(n: GridStackNode, column: number)

Source from the content-addressed store, hash-verified

1231 }
1232
1233 protected findCacheLayout(n: GridStackNode, column: number): number | undefined {
1234 return this._layouts?.[column]?.findIndex(l => l._id === n._id) ?? -1;
1235 }
1236
1237 public removeNodeFromLayoutCache(n: GridStackNode) {
1238 if (!this._layouts) {

Callers 3

nodeBoundFixMethod · 0.95
cacheOneLayoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected