Docs
API
  • hideColumn(dataIndex: String)


    Hide column.
    dataIndex is column index of data.

    Example

    
    new FancyGrid({
      ...
      columns: [{
        index: 'name',
    	title: 'Name',
      ...
    
    grid.hideColumn('name');
    

    hideColumn(dataIndexes: Array)


    Hide columns.
    dataIndexes are columns indexes of data.

    Example

    
    new FancyGrid({
      ...
      columns: [{
        index: 'name',
    	title: 'Name',
      },{
        index: 'company',
    	title: 'Company'
      ...
    
    grid.hideColumn(['name', 'company']);
    

    hideColumn(orderIndex: Number)


    Hide column by it's order in columns. orderIndex is order in columns.

    Example

    
    grid.hideColumn(0);
    

    hideColumn(side: String, dataIndex: String)


    To hide column in locked sides. It requires to define param side.
    Possible values: 'left', 'center', 'right'

    Example: hide locked column

    
    grid.hideColumn('left', 'name');
    

    Example: hide right locked column

    
    grid.hideColumn('right', 'name');