Docs
API
  • exportToExcel(params: Object)


    Exports data to Excel file.
    To generate Excel file, it is used SheetJS

    Requires to set property exporter: true

    By default it exports only visually displayed data.
    To export all data it requires to set property all: true.

    Example

    
    var grid = new FancyGrid({
      window: true,
      modal: true,
      exporter: true,
      ...
    });
    ...
    grid.exportToExcel();
    

    Example: Export all data

    
    grid.exportToExcel({
      all: true
    });
    

    Example: File Name

    
    grid.exportToExcel({
      fileName: 'My Excel'
    });
    

    Example: Without Header

    
    grid.exportToExcel({
      header: false
    });
    

    See also

    Method exportToCSV
    Method getDataAsCSV

    Doc link Export