Problem adding Print Button
Problem adding Print Button
jackalbright
Posts: 14Questions: 4Answers: 0
I'm new to DataTables (I like it a lot, so far). I have been successful in integrating the basic DataTables functionality, but am having a problem adding a print button. I see no Print button. All other navigation items are visible and work as they should. I wonder, do I need an additional plugin?
Here is my initialization code:
oTable = jQuery('#subscriptionTable_dataTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oTableTools": {
"aButtons": [
{
"sExtends": "print",
"sButtonText": "PRINT",
"bShowAll": true
}
]
}
});
Here is my initialization code:
oTable = jQuery('#subscriptionTable_dataTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oTableTools": {
"aButtons": [
{
"sExtends": "print",
"sButtonText": "PRINT",
"bShowAll": true
}
]
}
});
This discussion has been closed.
Replies
Allan
I have now added tabletools, but the buttons still do not appear. I'm using the basic button setup, like this:
oTable = jQuery('#subscriptionTable_dataTable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"oTableTools": {
"aButtons": [
"print"
]
}
});
I can see that the TableTools.min.js file is indeed loaded.