-
Notifications
You must be signed in to change notification settings - Fork 430
Closed
Description
Is there a way to export to csv only selected rows?
I collect selected rows with this function:
var selectedRows = []; function onRowSelect(row, isSelected) { if (isSelected) { selectedRows.push(row); } else { selectedRows.splice(selectedRows.indexOf(row), 1); } }
Can I somehow pass those to CSVExportButton? Maybe using its onExport() method?
<ToolkitProvider keyField="Id" data={this.state.products} columns={columns} exportCSV > {props => ( <div> <ExportCSVButton {...props.csvProps} className="btn btn-primary" > Export CSV </ExportCSVButton>
Can't find any example of this.