I can't see buttons for copy/xml....but I have added the jquery code
I can't see buttons for copy/xml....but I have added the jquery code
Hi all,
I have added a code for the buttons as it is added on the example on this site.
But I don't see any buttons above my table. Do I need to type something into html?
Here is the code that I have added:
[code]
$(document).ready(function() {
$('#jphit').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sScrollY": "350px",
"bDeferRender": true,
"oTableTools": {
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"sAjaxSource": "live_table.php"
} );
[/code]
Do I need to add something special?
I have added a code for the buttons as it is added on the example on this site.
But I don't see any buttons above my table. Do I need to type something into html?
Here is the code that I have added:
[code]
$(document).ready(function() {
$('#jphit').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sScrollY": "350px",
"bDeferRender": true,
"oTableTools": {
"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
},
"sAjaxSource": "live_table.php"
} );
[/code]
Do I need to add something special?
This discussion has been closed.