Docs
API
  • addColumn(column: Object)


    Adds column to grid to center side at last order index.

    Example

    
    grid.addColumn({
      title: 'Age',
      index: 'age',
      type: 'string',
      width: 80
    });
    

    addColumn(column: Object, side: String)


    Adds column to grid to side at last order index.
    Possible side value: 'left', 'center', 'right'.

    Example: Adding column to left side

    
    grid.addColumn({
      title: 'Age',
      index: 'age',
      type: 'string',
      width: 80
    }, 'left');
    

    addColumn(column: Object, side: String, orderIndex: Number)


    Adds column to grid to side at order index.
    Possible side value: 'left', 'center', 'right'.

    Example: Adding column to left side at 0 order index

    
    grid.addColumn({
      title: 'Age',
      index: 'age',
      type: 'string',
      width: 80
    }, 'left', 0);