ColVis with column name instead of Index

ColVis with column name instead of Index

bdunsmuirbdunsmuir Posts: 17Questions: 4Answers: 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"}
This discussion has been closed.