Is it possible to overwrite responsivePriority ?

Is it possible to overwrite responsivePriority ?

vitorleo80vitorleo80 Posts: 6Questions: 3Answers: 0
edited December 2018 in Free community support

Hello,

I would like to ask if anyone knows how to overwrite the responsivePriority order hiding a column that has no data?

Example :

[
{ responsivePriority: 1, targets: 0 },
{ responsivePriority: 2, targets: 1 },
{ responsivePriority: 3, targets: 2 },
{ responsivePriority: 4, targets: 3 } ]

Let say that I want the above order but if target 2 has no data, I want it to be hidden.

Thanks in advance.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @vitorleo80 ,

    Unfortunately, that's not possible - the columns.responsivePriority is defined at table initialisation, and like most other configuration options can't be changed afterwards. You can, however, hide the entire column with column.visible() - this won't be responsively, it'll always be hidden.

    Hope that helps,

    Cheers,

    Colin

  • vitorleo80vitorleo80 Posts: 6Questions: 3Answers: 0

    Thanks Colin

This discussion has been closed.