ColVis with column name instead of Index
ColVis with column name instead of Index
![bdunsmuir](https://secure.gravatar.com/avatar/417c35ba6d1fc544cf26e2b39060df02/?default=https%3A%2F%2Fvanillicon.com%2F417c35ba6d1fc544cf26e2b39060df02_200.png&rating=g&size=120)
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.