Change the td font size depending of the number of visible columns
Change the td font size depending of the number of visible columns
dab123
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.
This discussion has been closed.
Answers
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
Hi @colin,
Thank you for your time, it works like a charm.
Regards.