Way to hide rows the proper way?
Opened this issue · 1 comments
Skyridr commented
There are a few rows I'd like to hide from showing up, but leaving it intact on the original csv file. I noticed a few examples on datatables.net, but I can't figure out how to add them to the index.html file within the datatables_options area.
From what I could gather, I can use something like:
row().remove()
https://datatables.net/reference/api/row().remove()
But I don't think that would be the best way to do so. Are there any other methods?
From what I can gather on google, most of my search results ends up showing up a button to either show or hide it. but what if I wish to completely hide it with no button to show it?
Regards,
Skyrider
sabatale commented
In case anyone is wondering:
datatables_options: {
"columnDefs": [
{ "visible": false, "targets": 0 }, // hides the first column
]
}