Button export csv
Button export csv

Hallo,
how can you define the path through the button and default file name and download it automatically
thank you
var optionButton = [
{
extend: 'csv',
text: "<i class='fa fa-file-text-o'></i> Export as CSV'",
fieldSeparator: ';',
fieldBoundary: '',
exportOptions: {
modifier: {
search: 'none',
}
}
}
]
This discussion has been closed.
Replies
There is no option for that, sorry. The browser's default will always be used. I'm not aware of any option to specify a path using the HTML5 APIs. I also don't see how you would be able to guarantee that the path given would actually exist.
Allan