cwl - Thanks for your reply. The array is populated in other code and passed in. All the entries in the array are populated. Put a space in the 'empty' ones so I would not have to detect empty / undefined / null / confusion. This is the display:
tblArr: [ [ ' ', ' ', 'A', 'B', 'C', 'D', 'E', 'F', ' ' ],
[ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' ],
[ '1', ' ', 'gub', 'ras', 'mef', 'crulp', 'buct', 'zub', ' ' ],
[ '2', ' ', 'clack', 'bilp', 'qualt', 'posk', 'gelt', 'taft', ' ' ],
[ '3', ' ', 'julm', 'crift', 'kep', 'sit', 'glap', 'trin', ' ' ],
[ '4', ' ', 'jip', 'dolp', 'hush', 'sos', 'fresh', 'rop', ' ' ],
[ '5', ' ', 'crit', 'bel', 'frel', 'hes', 'rift', 'lisp', ' ' ],
[ '6', ' ', 'trus', 'drelf', 'memp', 'clas', 'belm', 'drulf', ' ' ],
[ ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' ] ]
I looks different in the log but the spaces have all been squashed out here. At your suggestion I have added:
nextVal = inArr[r][c].toString();
console.log('r: ', r, ' c: ', c, ' val: ', nextVal );
nextReq =
{
'objectId': templateSlideId,
'pageType': 'SLIDE',
'pageElements': [thePageElement]
}
requests.push(nextReq);
console.log(JSON.stringify(nextReq) );
}
I teach and my students are on small Chromebooks. I am creating 9x9 tables (labels, frame, and 6x6 grid) to display in a Google slide or Jamboard. I want it to fill the entire available space. The methods l which do not fail result in tiny tables swimming in lots of white space. Using the table in the spreadsheet wastes screen space with the toolbars for the spreadsheet.