MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / addRowBelow

Function addRowBelow

notes.js:294–301  ·  view source on GitHub ↗
(table, rowIndex)

Source from the content-addressed store, hash-verified

292 }
293
294 function addRowBelow(table, rowIndex) {
295 const newRow = table.insertRow(rowIndex + 1);
296 const colCount = table.rows[0].children.length;
297 for (let i = 0; i < colCount; i++) {
298 const cell = newRow.insertCell();
299 cell.style.cssText = 'padding: 12px; border: 1px solid #e5e7eb; color: #374151; min-height: 20px;';
300 }
301 }
302
303 function addColumnLeft(table, colIndex) {
304 Array.from(table.rows).forEach((row, rowIdx) => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected