function addColToCellAfter($cell, numberOfCols = 1) {
  const index = $cell.index();
  let cellToAdd;

  $cell.parents('table').find('tr').each((n, tr) => {
    const isTBody = domUtils.getNodeName(tr.parentNode) === 'TBODY';
    const isMSIE = util.browser.msie;
    const cell = tr.children[index];
    for (let i = 0; i < numberOfCols; i += 1) {
      if (isTBody) {
        cellToAdd = document.createElement('td');
      } else {
        cellToAdd = document.createElement('th');
      }
      if (!isMSIE) {
        cellToAdd.appendChild(document.createElement('br'));
      }
      $(cellToAdd).insertAfter(cell);
    }
  });
}
function addColToCellAfter($cell, numberOfCols = 1) {
  const index = $cell.index();
  let cellToAdd;

  $cell.parents('table').find('tr').each((n, tr) => {
    const isTBody = domUtils.getNodeName(tr.parentNode) === 'TBODY';
    const isMSIE = util.browser.msie;
    const cell = tr.children[index];
    for (let i = 0; i < numberOfCols; i += 1) {
      if (isTBody) {
        cellToAdd = document.createElement('td');
      } else {
        cellToAdd = document.createElement('th');
      }
      if (!isMSIE) {
        cellToAdd.appendChild(document.createElement('br'));
      }
      $(cellToAdd).insertAfter(cell);
    }
  });
}
function addColToCellAfter ( $cell , numberOfCols = 1 ) { const index = $cell . index ( ) ; let cellToAdd ; $cell . parents ( 'table' ) . find ( 'tr' ) . each ( ( n , tr ) => { const isTBody = domUtils . getNodeName ( tr . parentNode ) === 'TBODY' ; const isMSIE = util . browser . msie ; const cell = tr . children [ index ] ; for ( let i = 0 ; i < numberOfCols ; i += 1 ) { if ( isTBody ) { cellToAdd = document . createElement ( 'td' ) ; } else { cellToAdd = document . createElement ( 'th' ) ; } if ( ! isMSIE ) { cellToAdd . appendChild ( document . createElement ( 'br' ) ) ; } $ ( cellToAdd ) . insertAfter ( cell ) ; } } ) ; }
Add column to after the current cell
@param {jQuery} $cell - jQuery wrapped table cell
@param {number} [numberOfCols=1] - number of cols
@ignore
Add column to after the current cell
Add column to next cell