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

Method getRow

src/gridstack.ts:1209–1211  ·  view source on GitHub ↗

* Returns the current number of rows, which will be at least `minRow` if set. * The row count is based on the highest positioned widget in the grid. * * @returns the current number of rows in the grid * * @example * const rowCount = grid.getRow(); * console.log('Grid has', rowCo

()

Source from the content-addressed store, hash-verified

1207 * console.log('Grid has', rowCount, 'rows');
1208 */
1209 public getRow(): number {
1210 return Math.max(this.engine.getRow(), this.opts.minRow || 0);
1211 }
1212
1213 /**
1214 * Checks if the specified rectangular area is empty (no widgets occupy any part of it).

Callers 5

_dragOrResizeMethod · 0.95
resizeToContentMethod · 0.45
gridstack-spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected