Count only visible columns
Count only visible columns
typhon
Posts: 25Questions: 7Answers: 0
Hello,
is it possible to count only visible columns?
With
table.columns().header().length;
counts all columns also the hidden.
Thx for response!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can get an array of true/false with
table.columns().visible()
then count the number oftrue
in a loop. Example:[false, true, true, true, true, true, true]
.Kevin
Another option is to use the
columns-selector
option to select only visible columns:Allan