Can you make a range of column targets 'visible false', rather than list individual columns?
Can you make a range of column targets 'visible false', rather than list individual columns?
MJ79
Posts: 5Questions: 3Answers: 0
When using columnDefs, is it possible to select a range of targets instead of listing each individual.
For example, instead of listing:
{ "visible": false, "targets": [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 28 ]},
Is it possible to make visible columns 3-14 and 28?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Currently no - you can use
columnDefs.targets
with a class name or a column index. It isn't possible to use a range I'm afraid.Allan