src/js/extensions/table/mergedTableAlignCol.js
function _align(headRowData, startColIndex, endColIndex, alignDirection) {
  util.range(startColIndex, endColIndex + 1).forEach(colIndex => {
    const headCellData = headRowData[colIndex];

    if (util.isExisty(headCellData.colMergeWith)) {
      headRowData[headCellData.colMergeWith].align = alignDirection;
    } else {
      headCellData.align = alignDirection;
    }
  });
}
function _align(headRowData, startColIndex, endColIndex, alignDirection) {
  util.range(startColIndex, endColIndex + 1).forEach(colIndex => {
    const headCellData = headRowData[colIndex];

    if (util.isExisty(headCellData.colMergeWith)) {
      headRowData[headCellData.colMergeWith].align = alignDirection;
    } else {
      headCellData.align = alignDirection;
    }
  });
}
function _align ( headRowData , startColIndex , endColIndex , alignDirection ) { util . range ( startColIndex , endColIndex + 1 ) . forEach ( colIndex => { const headCellData = headRowData [ colIndex ] ; if ( util . isExisty ( headCellData . colMergeWith ) ) { headRowData [ headCellData . colMergeWith ] . align = alignDirection ; } else { headCellData . align = alignDirection ; } } ) ; }
Align to table header.
@param {Array.<object>} headRowData - head row data
@param {number} startColIndex - start column index for styling align
@param {number} endColIndex - end column index for styling align
@param {string} alignDirection - align direction
@private
Align to table header .