Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35379

ColVis with column name instead of Index

$
0
0

Is it possible to use the column name instead of index when trying to hide a column, using the new DT API?

So instead of this:

"colVis": {"exclude": [17],  "buttonText": "Columns"}

I could use something like:

"colVis": {"exclude": [oTable.column( 'priority:name' ).index()],  "buttonText": "Columns"}

Viewing all articles
Browse latest Browse all 35379

Trending Articles