Print Button and Setting the Data that it prints
Print Button and Setting the Data that it prints
Hi,
So I have managed to add 'copy', 'csv', 'excel', 'pdf', 'print' buttons to my table and set the columns I want them to export, however, is there a way to get the data from a column that is rendering a button instead of its string ?
In this image you can see I have a "view notes" button, that, when clicked shows the notes in a handy pop-up
http://i.imgur.com/glMINtm.png
If I try to export the column I get the string "View Notes" which is to be expected as thats how im rendering it.
I have tried:
{
extend: 'print',
exportOptions: {
columns: [1,2,3,4,5,6, {'data': 'batch_notes', "render": function ( data, type, row, meta ) { return data },}]
}
}
Im a little stumped as to what else to try..
As always, all help appreciated,
Thanks in advance,
Codex
Answers
Bump..