Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to hide rows the proper way? #54

Open
Skyridr opened this issue Sep 19, 2017 · 1 comment
Open

Way to hide rows the proper way? #54

Skyridr opened this issue Sep 19, 2017 · 1 comment

Comments

@Skyridr
Copy link

Skyridr commented Sep 19, 2017

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
Copy link
Contributor

In case anyone is wondering:

datatables_options: {
              "columnDefs": [
                { "visible": false, "targets": 0 },  // hides the first column
              ]
            }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants