Please implement a way to set filename through buttons API

Please implement a way to set filename through buttons API

N4M3ZN4M3Z Posts: 2Questions: 1Answers: 0

When using buttons, the exported filename can be specified upon initialisation as shown here: https://datatables.net/extensions/buttons/examples/html5/filename.html. What is not shown however is how to assign the filename dynamically, e.g. by reading it from a global variable in a simplest case. The only way to do this now is to use the asterisk character title = "*" and save the filename into document.title, which is then read dynamically upon button click. As far as I can tell, there is no other way to do it. This is a less than perfect solution. Please implement a way to set the title property through buttons API.

This discussion has been closed.