customize the button print
customize the button print
jfri_2007
Posts: 25Questions: 6Answers: 0
when i want to print , in the preview`s print i can see my table with Title, 1 message, and the table, but i want to insert a total under the dataTable, anybody knows how can i put a message in?
Is specificly in the customize (print ).
this only works with 1 msj message: "message hello" , and appears in the head of the page
This discussion has been closed.
Answers
with append i can put a text, buy only 1, i want 2 like this :
TOTAL: xxxxxxxx
SUBTOTAL : xxxxxxx
(all this in the preview print, customize)
Im sure this is very old, (but I cant tell, you know why @allan? theres no dates on anything! lol.... super weird). But ill answer it anyways.
I saw the
customize
option and was curious what I could use it for, I found this thread in my search results, so thought id answer it..The
DataTable.ext.buttons.print
method is what handles this option, and the related code is pretty simple:For how to use it, take a look at the example, the example does exactly what you are looking to do @jfri_2007.
So you can append any data to the content using jQuerys $.append() or $.prepend()
Sure there is - immediately below the forum name of the post it shows the date of when the post was created. September 15 for this thread.
Allan