Skip to content

Export multiple tables to one CSV document? #534

@brendanmurphy

Description

@brendanmurphy

I have created a wholesale order form with multiple stacked tables (one table for each product). I would like to allow users to export a single CSV file that represents the entire order. So I need the ability to export multiple tables to one CSV document like so:

<ToolkitProvider
  keyField="id"
  data={ products }
  columns={ columns }
  exportCSV
>
  {
    props => (
      <div>
        <ExportCSVButton { ...props.csvProps }>Export CSV!!</ExportCSVButton>
        <BootstrapTable { ...props.baseProps } />
	<BootstrapTable { ...props.baseProps } />
	<BootstrapTable { ...props.baseProps } />
	<BootstrapTable { ...props.baseProps } />
      </div>
    )
  }
</ToolkitProvider>

*Obviously each table needs its own unique keyField, data and columns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions