When exporting a table to CSV, I have implemented the following logic:
var cols = rows[i].querySelectorAll("td, th");
While this method works well, users are able to hide/display columns as they desire. Since AngularJS is used, the hidden columns are marked with ng-hide
.
Is there a way to modify the querySelectorAll
function to only select columns that are not hidden with ng-hide
?