Change the td font size depending of the number of visible columns

Change the td font size depending of the number of visible columns

dab123dab123 Posts: 3Questions: 2Answers: 0

Hello,
I have a large table with 16 columns and the colvis button implemented, so I had to change the font size to be fully displayed. My question is, can I change the font size depending of the number of visible columns?

Thank you for your time.
Regards.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited June 2018

    Hi @dab123,

    Yep, you can do that by listening on the column-visibility, as in this example here. If you hide a couple of columns, the font increases, then decreases as you unhide them.

    Hope that does the trick for you,

    Cheers,

    Colin

  • dab123dab123 Posts: 3Questions: 2Answers: 0

    Hi @colin,
    Thank you for your time, it works like a charm.
    Regards.

This discussion has been closed.