MCPcopy Create free account
hub / github.com/handsontable/handsontable / countRows

Method countRows

handsontable/src/dataMap/dataSource.ts:399–409  ·  view source on GitHub ↗

* Count number of rows. * * @returns {number}

()

Source from the content-addressed store, hash-verified

397 * @returns {number}
398 */
399 countRows() {
400 if (this.hot!.hasHook('modifySourceLength')) {
401 const modifiedSourceLength = this.hot!.runHooks('modifySourceLength');
402
403 if (typeof modifiedSourceLength === 'number' && Number.isInteger(modifiedSourceLength)) {
404 return modifiedSourceLength;
405 }
406 }
407
408 return this.data!.length;
409 }
410
411 /**
412 * Count number of columns.

Callers 2

setAtCellMethod · 0.95
getByRangeMethod · 0.95

Calls 2

hasHookMethod · 0.80
runHooksMethod · 0.65

Tested by

no test coverage detected