Print: Hide column from Printing
Print: Hide column from Printing
Hi,
I want to hide last column from printing. How can I do that ?
I have tried below approach. but its not working.
customize: function ( win ) {
$( win.document.body )
.find( 'table' )
.css( {
color: 'green',
} )
.find('.actions').css('display', 'none');
}
*where 'actions' is a class applied to last column <th> and <td>.
PFA screenshot for detail.
Thanks,
Hitesh.
This question has an accepted answers - jump to answer
Answers
You can define the columns to be printed. Take a look at this example:
https://datatables.net/extensions/buttons/examples/html5/columns.html
Kevin
Hey Kevin,
Thanks for your response.
Your answer worked and saved by day...!!!:)
Thanks,
Hitesh.