      if not @columns[i]
       columns.push col
 
+    columns.push
+     id: idHead
+     name: idHead
+     type: sampleCol.type
+     default: sampleCol.default
     columns.push
      id: id
      name: id

    @table.size *= n

    data[id] = new Array @table.size
    m = 0
    for col, i in @table.columns when @columns[i]
     for d, j in @table.data[col.id]
      data[id][m + j * n] = d
     m++

    columns = []

    @elems.sidebar.innerHTML = ''

    Weya elem: @elems.sidebar, context: this, ->
     @$.elems.btn = @button '.u-full-width.button-primary', 'Convert to rows',
      on: {click: @$.on.apply}
      style: {display: 'none'}
     @button '.u-full-width', on: {click: @$.on.cancel}, 'Cancel'
