MCPcopy
hub / github.com/handsontable/handsontable / createSpreadsheetObjectData

Function createSpreadsheetObjectData

handsontable/src/helpers/data.ts:77–92  ·  view source on GitHub ↗
(rows: number = 100, colCount: number = 4)

Source from the content-addressed store, hash-verified

75 * @returns {Array}
76 */
77export function createSpreadsheetObjectData(rows: number = 100, colCount: number = 4): Record<string, string>[] {
78 const _rows = [];
79 let i;
80 let j;
81
82 for (i = 0; i < rows; i++) {
83 const row: Record<string, string> = {};
84
85 for (j = 0; j < colCount; j++) {
86 row[`prop${j}`] = spreadsheetColumnLabel(j) + (i + 1);
87 }
88 _rows.push(row);
89 }
90
91 return _rows;
92}
93
94/**
95 * Generates an empty data object.

Callers 15

helpers.types.tsFile · 0.90
general.spec.jsFile · 0.50
selection.spec.jsFile · 0.50
selectAll.spec.jsFile · 0.50
selectRows.spec.jsFile · 0.50
hiddenRows.spec.jsFile · 0.50
mergeCells.spec.jsFile · 0.50
scrolling.spec.jsFile · 0.50

Calls 2

spreadsheetColumnLabelFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…