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

Method isAreaEmpty

src/gridstack.ts:1228–1230  ·  view source on GitHub ↗

* Checks if the specified rectangular area is empty (no widgets occupy any part of it). * * @param x the x coordinate (column) of the area to check * @param y the y coordinate (row) of the area to check * @param w the width in columns of the area to check * @param h the height in rows

(x: number, y: number, w: number, h: number)

Source from the content-addressed store, hash-verified

1226 * }
1227 */
1228 public isAreaEmpty(x: number, y: number, w: number, h: number): boolean {
1229 return this.engine.isAreaEmpty(x, y, w, h);
1230 }
1231
1232 /**
1233 * If you add elements to your grid by hand (or have some framework creating DOM), you have to tell gridstack afterwards to make them widgets.

Callers 2

gridstack-spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected