How do you get the raw table data for export?
How do you get the raw table data for export?
In pre-1.10, I had an ad hoc CSV export system that used:
oTable._('tr', {filter:'applied'});
...to get all the raw rows after filtering. I'm trying to switch to 1.1x. I'm using the "DataTables" form of the constructor so I can use some of the Buttons extension's features. However, now the previous line of code doesn't work, and I can't figure out from the Buttons docs how to get the raw data (before render functions have been applied).
This discussion has been closed.
Answers
Oops, I am getting the raw data using
table.buttons.exportData(). Forget this ever happened.I spoke too soon. I was confused due to the default of
stripHtmlbeing true messing with my data. I can only see how to get rendered data withexportData(). How do you get the original data, current filter applied?