What is modern analogue of mColumns?

What is modern analogue of mColumns?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin

    That property is button specific, so it is documented with each button type that it applies to - for example see the colvis documentation (specifically the columns option).

    Allan

  • gtamentgtament Posts: 5Questions: 2Answers: 0

    You understood me wrong. I want to generate pdf based only on visible columns. And mColumns defined which columns should be used as the data source for the export, but it is deprecated now. So even if column is hidden, it will be in pdf

  • gtamentgtament Posts: 5Questions: 2Answers: 0

    Found an answer.
    exportOptions: { columns: ":visible" }

  • allanallan Posts: 63,161Questions: 1Answers: 10,406 Site admin
    Answer ✓

    I understand now - thanks for the clarification. Yes, the exportOptions.columns option is the way to do this.

    Allan

This discussion has been closed.