MCPcopy
hub / github.com/handsontable/handsontable / createSpreadsheetData

Function createSpreadsheetData

handsontable/src/helpers/data.ts:53–68  ·  view source on GitHub ↗
(rows: number = 100, columns: number = 4)

Source from the content-addressed store, hash-verified

51 * @returns {Array}
52 */
53export function createSpreadsheetData(rows: number = 100, columns: number = 4): string[][] {
54 const _rows = [];
55 let i;
56 let j;
57
58 for (i = 0; i < rows; i++) {
59 const row = [];
60
61 for (j = 0; j < columns; j++) {
62 row.push(spreadsheetColumnLabel(j) + (i + 1));
63 }
64 _rows.push(row);
65 }
66
67 return _rows;
68}
69
70/**
71 * Creates 2D array of Excel-like values "A1", "A2", as an array of objects.

Callers 15

helpers.types.tsFile · 0.90
hiddenRows.spec.jsFile · 0.50
general.spec.jsFile · 0.50
shiftHome.spec.jsFile · 0.50
tab.spec.jsFile · 0.50

Calls 2

spreadsheetColumnLabelFunction · 0.70
pushMethod · 0.45

Tested by 9

dataFunction · 0.40
getMultilineDataFunction · 0.40
getMultilineDataFunction · 0.40
makeGridFunction · 0.40
makeCollapsibleGridFunction · 0.40
makeCollapsedGridFunction · 0.40
buildGridFunction · 0.40
getMultilineDataFunction · 0.40
createGridInIframeFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…