Export files empty when using buttons.dom and button extend simultaneously
Export files empty when using buttons.dom and button extend simultaneously
Hi,
I want to display four buttons, with a dom option and customization. I am using the following code in the table parameters :
buttons : {
dom: {
button: {
tag : 'input',
className : 'button'
}
},
buttons :[
{
extend: 'excelHtml5',
...
},
{
extend: 'csvHtml5',
...
},
{
extend: 'pdfHtml5',
...
},
{
extend: 'print',
...
}
]
}
Problems :
1. When I Use the tag option in buttons.dom.button, the extends do not work and the export files (and print) are empty.
2. When I remove the tag option, the extends work but the export files are still empty
3. When I remove the buttons.buttons option and keep the buttons.dom option, the export files are correct (but of course I loose the extends)
Than you for your help,
Olivier
Answers
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin