Print omitting the first column
Print omitting the first column
Hi,
We are using the button file export in the following dynamic way:
buttonCommon.exportOptions.orthogonal = 'export';
buttonCommon.exportOptions.columns = ':visible+:not(.notForPrint)';
tableOptions.buttons.push([
$.extend( true, {}, buttonCommon, {extend: 'copy'}),
$.extend( true, {}, buttonCommon, {extend: 'csv'}),
$.extend( true, {}, buttonCommon, {extend: 'excel'}),
$.extend( true, {}, buttonCommon, {extend: 'print'}),
]);
}
When we use the print in a table where the first column is with information (like in this example) the printout omits the first column.
What are we doing wrong?
Thanks,
Yishay
This discussion has been closed.
Answers
Do you actually want the next adjacent selector? I wonder if it might be easier to specify the
columns
option as a function and you can loop over the columns and decide which ones you want? Sometimes that is simpler for complex expressions.Allan