We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 569aa01 commit 4aaf140Copy full SHA for 4aaf140
packages/react-bootstrap-table2-example/examples/csv/export-custom-data.js
@@ -36,11 +36,12 @@ const columns = [{
36
37
const MyExportCSV = (props) => {
38
const handleClick = () => {
39
- props.onExport();
+ // passing my custom data
40
+ props.onExport(products.filter(r => r.id > 2));
41
};
42
return (
43
<div>
- <button className="btn btn-success" onClick={ handleClick }>Export to CSV</button>
44
+ <button className="btn btn-success" onClick={ handleClick }>Only export Product ID bigger than 2</button>
45
</div>
46
);
47
0 commit comments