This demo uses a CustomJS callback to export DataTable contents to CSV.
CustomJS
DataTable
NOTE: On Safari the CSV will open in a new tab, rather than downloading.