Print omitting the first column

Print omitting the first column

yishayhyishayh Posts: 108Questions: 17Answers: 0

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

Answers

  • allanallan Posts: 63,576Questions: 1Answers: 10,483 Site admin

    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

This discussion has been closed.