public/js/handsontable/jquery.handsontable.full.js
function (coords) {
      if (priv.dataType === 'object' || priv.settings.columns) {
        throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting");
      }
      var r = 0;
      if (!coords || coords.col >= self.colCount) {
        for (; r < self.rowCount; r++) {
          if (typeof priv.settings.data[r] === 'undefined') {
            priv.settings.data[r] = [];
          }
          priv.settings.data[r].push('');
        }
      }
      else {
        for (; r < self.rowCount; r++) {
          priv.settings.data[r].splice(coords.col, 0, '');
        }
      }
    }
function (coords) {
      if (priv.dataType === 'object' || priv.settings.columns) {
        throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting");
      }
      var r = 0;
      if (!coords || coords.col >= self.colCount) {
        for (; r < self.rowCount; r++) {
          if (typeof priv.settings.data[r] === 'undefined') {
            priv.settings.data[r] = [];
          }
          priv.settings.data[r].push('');
        }
      }
      else {
        for (; r < self.rowCount; r++) {
          priv.settings.data[r].splice(coords.col, 0, '');
        }
      }
    }
function ( coords ) { if ( priv . dataType === 'object' || priv . settings . columns ) { throw new Error ( "Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting" ) ; } var r = 0 ; if ( ! coords || coords . col >= self . colCount ) { for ( ; r < self . rowCount ; r ++ ) { if ( typeof priv . settings . data [ r ] === 'undefined' ) { priv . settings . data [ r ] = [ ] ; } priv . settings . data [ r ] . push ( '' ) ; } } else { for ( ; r < self . rowCount ; r ++ ) { priv . settings . data [ r ] . splice ( coords . col , 0 , '' ) ; } } }
Creates col at the right of the data array
@param {Object} [coords] Optional. Coords of the cell before which the new column will be inserted
Creates col at the right of the data array