I've been trying to access the data displayed in a table component, where the column (object key) names match the column titles in the table and the cell values have the same format as seen in the table.
I tried {{table.getDisplayedData()}} for this purpose, but as shown in the attached image, it returns data that is different from what is displayed in the table. My goal is to download the table into a excel or csv file and I want to ensure the file contains the data exactly the same as what is presented in the table.
What happens when you use the built-in download button at the bottom right of the table?
I tried this with one of my tables and the outputted CSV was indeed using the mapped column labels and cell data (as opposed to the underlying field names/raw data used to populate the table).
Thanks for your reply! I tried the table default download option but it doesn't solve the problem.
In the downloaded csv file, the column names indeed match to the table columns. However, the data format of created at is still different. And if I try to hide any columns, they still appear in the downloaded file.