Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

DashTable Include Selected Rows in Export

I’m wondering if there is a way to include selected rows in the export of a Dash DataTable. Something along the lines of including the selected column and outputting as 0/1 or False/True if that row is selected. As it currently works, the checkbox column corresponding to “selected_rows” is omitted from the export.

Something along the lines of this could work for me (using the underlying DataFrame and exporting with Pandas) , but I was wondering if that is possible with the built-in Export function of the DataTable.

I ended up just going with building my own custom component to save out the CSV with my additional rows, rather than leveraging the DataTable Export function.