Hi,
thanks for your post, and sorry for the trouble.
Sorry, I don’t know a solution to that. As I did not develop the actual JavaScript code for these Extensions (I only made them available as Extensions), I’m not that familiar with their internals and how they are interconnected. You might have to manually add this functionality to the JS files, for which looking at the documentation of those DataTables add-ons (see http://www.datatables.net/ ) is a good starting point.
Sorry for not having better news here.
Regards,
Tobias
Ok, thanks for quick response! I’ll take a look at the Data Tables site.
Hi,
no problem, you are very welcome! I hope that you can find something there!
Best wishes,
Tobias
It looks like I need to add the following for the pdf output:
"oSelectorOpts": {page: 'current'}
I’m guessing I need to add it to:
$tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "pdf", "sButtonText": "PDF" }, { "sExtends": "print", "sButtonText": "Print" } ] }';
But, I’m not sure of the syntax
Thanks!
Hi,
nice find! It might be enough to change that line to
$tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "pdf", "sButtonText": "PDF" }, { "sExtends": "print", "sButtonText": "Print" } ], "oSelectorOpts": {"page": "current"} }';
Regards,
Tobias
Thanks! That put me on the right track. I had a little adjusting to do, but it’s working great!
$tabletools_options = '{ "sSwfPath": "' . $swf_path . '", "aButtons": [ { "sExtends": "pdf", "sButtonText": "PDF", "oSelectorOpts": {"page": "current"} }, { "sExtends": "print", "sButtonText": "Print" } ] }';
Hi,
awesome! Ok, so it has to go within the sub object. Nice find! 🙂
Best wishes,
Tobias