Table Tools printing Add Headers feature request
Table Tools printing Add Headers feature request
Niels Hansen
Posts: 4Questions: 0Answers: 0
Is there any way to add our own Header to dataTable when we select the Print button. It would be great to be able to add a Header (with CSS formating, so we can make it larger etc). Then this could be great way to create custom reports.
If this feature is available could you tell me how to set this, if it's not, this would be a feature I think that would enhance the plugin!
If this feature is available could you tell me how to set this, if it's not, this would be a feature I think that would enhance the plugin!
This discussion has been closed.
Replies
If you have a look at the constructed DOM (using Firebug etc) you'll see that the elements are all controlled via CSS (my demo stylesheet is included in the package). You can modify this as you wish to get the effect you are looking for. In fact, I strongly encourage it!
Regards,
Allan
I will take a look at that. I figured that was the way to go but want to make sure you did not have a method call to do it.
Yes it should be possible to do what you are looking for, but no it's not available by default. You would need to write a little bit of code to add a plug-in to TableTools to open it in a new window. Basically you would need to open the window, then parse through the DataTables data and pass it to the new window. The new window would then render the table.
Regards,
Allan
unfortunately I have no skills in javascript to make this change, my php is strong ... but let one say to the employees ...
sorry my English I am Brazilian.