how can I specify targets such as from column 20 til 30 when I am using visiable option
how can I specify targets such as from column 20 til 30 when I am using visiable option
meneleyh
Posts: 3Questions: 2Answers: 0
columnDefs: [
{ visible: false, targets: [2, 4, 5, 6, 7, 8, 11, ... , 31, 35] },
the ellipsis should be replaced by whatever could stand for columns 20 through 30
Answers
There isn't a range option for the
columnsDefs.targets
option I'm afraid. You'd need to list the indexes individually (or use a loop to create them in an array).Allan
All of the options are documented in the
columnDefs.targets
docs. You can individually define each column or assign a class to those columns.Kevin