How to avoid showing columns with icons at the moment of printing or exporting to pdf
How to avoid showing columns with icons at the moment of printing or exporting to pdf
reing.prog
Posts: 11Questions: 3Answers: 0
Columns with edit or delete records icons are empty when you print or export the datatable, is there any way to hide these columns?
This discussion has been closed.
Answers
See if the column selector example helps:
https://datatables.net/extensions/buttons/examples/html5/columns.html
Kevin
Kevin
you do not know another way to hide the column other than through javascript, for example with some class css or something like that
Here are all the options for column selectors:
https://datatables.net/reference/type/column-selector
Kevin
Kevin
I apologize for the inconvenience again, as it would be for not showing the columns with a class x, I'm trying something and it does not work
buttons: [
extend: 'pdf',
exportOptions: {
columns: ':not(.notVisible)'
}
]
It worked