assets/js/main.js
/**
 * Create HTML element of entire column of the spreadsheet.
 *
 * @return {Object} HTML element of column.
 */
Create HTML element of entire column of the spreadsheet.
@return {Object} HTML element of column.
Create HTML element of entire column of the spreadsheet . @return { Object } HTML element of column .
function createColumn() {
  const colParent = document.createElement("div");
  setAttributes(colParent, { class: "col-parent cell-parent" });
  const colParentFragment = document.createDocumentFragment();
  const colHeader = createRowHeader(-1);
  colParentFragment.appendChild(colHeader);
  for (let col = 0; col < colSize; col++) {
    const cell = createColCell(col);
    colParentFragment.appendChild(cell);
  }
  colParent.appendChild(colParentFragment);
  return colParent;
}
function createColumn ( ) { const colParent = document . createElement ( "div" ) ; setAttributes ( colParent , { class : "col-parent cell-parent" } ) ; const colParentFragment = document . createDocumentFragment ( ) ; const colHeader = createRowHeader ( - 1 ) ; colParentFragment . appendChild ( colHeader ) ; for ( let col = 0 ; col < colSize ; col ++ ) { const cell = createColCell ( col ) ; colParentFragment . appendChild ( cell ) ; } colParent . appendChild ( colParentFragment ) ; return colParent ; }
Create HTML element of entire column of the spreadsheet.
Create HTML element of entire column of the spreadsheet .