TableTools -Code to translate from developer examples
-
Hi Tobias,
Thanks again.
I am unsure how to convert or use the code examples from the Datatables for Tabletools website.
If you could provide where it needs to be placed and the language it needs to be translated to.
I had success in editing the php file for hiding the csv icon etc. So I can follow the instruction.
I am a noob at this code but i can see its not the same as in the php file.
example:
https://www.datatables.net/release-datatables/extras/TableTools/pdf_message.html
$(document).ready( function () {
$(‘#example’).dataTable( {
“sDom”: ‘T<“clear”>lfrtip’,
“oTableTools”: {
“aButtons”: [
“copy”,
“csv”,
“xls”,
{
“sExtends”: “pdf”,
“sPdfOrientation”: “landscape”,
“sPdfMessage”: “Your custom message would go here.”
}
“print”
]
}
} );
} );
- The topic ‘TableTools -Code to translate from developer examples’ is closed to new replies.