Interface DataGridExporter

All Known Implementing Classes:
AbstractDataGridExporter, ExcelExporter, JsonExporter

public interface DataGridExporter
  • Method Details

    • exportDataGrid

      void exportDataGrid(Downloader downloader, com.vaadin.flow.component.grid.Grid<Object> dataGrid, ExportMode exportMode)
      download dataGrid content via downloader
    • getLabel

      String getLabel()
      Returns:
      exporter label
    • addColumnValueProvider

      void addColumnValueProvider(String columnId, Function<DataGridExporter.ColumnValueContext,Object> columnValueProvider)
      Adds a function to get value from the column.
      Parameters:
      columnId - column id
      columnValueProvider - column value provider function
    • removeColumnValueProvider

      void removeColumnValueProvider(String columnId)
      Removes an column value provider function by column id.
      Parameters:
      columnId - column id
    • getColumnValueProvider

      @Nullable Function<DataGridExporter.ColumnValueContext,Object> getColumnValueProvider(String columnId)
      Parameters:
      columnId - column id
      Returns:
      column value provider function for the column id