Docs
API
  • setColumnWidth(index: Number|String|Array, width: Number)


    Update column/columns widths.

    • index- Number|String|ArrayColumn data order index/column indexes/column data items.
    • width - Number.
      New width.

    Example: Set width 100 to column with index 'age'

    
    var grid = new FancyGrid({
      ...
    ...
    grid.setColumnWidth('age', 100);
    

    Example: Set width 100 to column with order index 1

    
    var grid = new FancyGrid({
      ...
    ...
    grid.setColumnWidth(1, 100);
    

    Example: Set width to several columns

    
    var grid = new FancyGrid({
      ...
    ...
    grid.setColumnWidth([{
      index: 'age',
      width: 100,
    },{
      index: 'name',
      width: 70
    }]);