I am using the datatables Export feature, and want to control the saved to filename.
I am using the datatables Export feature, and want to control the saved to filename.
worldroamer
Posts: 10Questions: 3Answers: 0
in Buttons
I am using the datatables Export feature, and wondered if anyone had any pointers on controling the filename that is saved to.
This is what I am using. The system does not appear to support the [title] parameter to do this, nor [filename]:
var buttons = [
{
extend: 'excelHtml5',
title: 'testfilename',
exportOptions: {orthogonal: 'export' }
},
This question has an accepted answers - jump to answer
Answers
What version of buttons are you using? The
excelHtml5
docs state thetitle
option is available starting with 1.4.0. This example showstitle
working for the filename. Also there is afilename
option that can be used. See thebuttons.exportInfo()
docs for more details of both options.If you still need help please provide a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Thanks Kevin. I will try and then get back to you on the result.
Hi Keven,
Thank you for pointing me in the right direction. Problem solved.