Exporting data as a CSV
I am new to using Tanstack Table. I am greatly enjoying it though. One thing I am trying to figure out how to get working is Exporting data as a CSV. I have not found many examples online. Anyone have any insight they can provide?
3 Replies
conscious-sapphire•3y ago
Hi there! Curious if you ever found a solution for this. I'm migrating from material-table and am struggling with finding a way to replace its built-in export button for pdf/csv. Thanks!
yelping-magenta•3y ago
@babycourageous I just implemented CSV exporting yesterday using
react-csv
. Based my solution off of this since I needed to request data before exporting a CSV https://github.com/react-csv/react-csv/issues/189#issuecomment-615955022GitHub
How to work async with react-csv · Issue #189 · react-csv/react-csv
Let's say I want to load the CSV data lazy from the server just when the user clicks CSVlink By the readme file, it seems to be easy, asyncOnClick={true} onClick={(event, done) => { axios.po...
conscious-sapphire•3y ago
Thanks for the info!