Hiding table headers on export for all buttons
Hiding table headers on export for all buttons
sarah
Posts: 17Questions: 0Answers: 0
Hi,
I'm assuming it's not possible to easily export a table with grouped columns in the header, so I'm trying to do the next best thing - export the table with no headers. I'm having trouble figuring out how to do this using the TableTools button options. I can define new custom buttons individually just fine, but I only want to have the default button set but with the "bHeaders": false option set for all of them. Is there a simple way to set an option for all buttons? I'm having trouble finding it/figuring it out...
Thanks so much,
Sarah
I'm assuming it's not possible to easily export a table with grouped columns in the header, so I'm trying to do the next best thing - export the table with no headers. I'm having trouble figuring out how to do this using the TableTools button options. I can define new custom buttons individually just fine, but I only want to have the default button set but with the "bHeaders": false option set for all of them. Is there a simple way to set an option for all buttons? I'm having trouble finding it/figuring it out...
Thanks so much,
Sarah
This discussion has been closed.
Replies
"oTableTools": {
"sSwfPath": "/copy_cvs_xls_pdf.swf",
"aButtons": [
{
"sExtends": "copy",
"bHeader": false
},
{
"sExtends": "csv",
"bHeader": false
},
{
"sExtends": "xls",
"bHeader": false
},
{
"sExtends": "pdf",
"bHeader": false
},
{
"sExtends": "print",
"bHeader": false
}
]
}
If there is a way to manipulate the default button set with fewer lines of code, throw it at me :)