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

Feature request: Ability to exclude a row from table-sort #51

Open
leap0x7b opened this issue Aug 27, 2021 · 3 comments
Open

Feature request: Ability to exclude a row from table-sort #51

leap0x7b opened this issue Aug 27, 2021 · 3 comments

Comments

@leap0x7b
Copy link

I have icons in my table, which uses table-sort-js. I then noticed that you can sort by icon, which I didn't want. I read the documentation and there is no feature to exclude a row. That's why I requested this feature

@LeeWannacott
Copy link
Owner

Correct there is no feature for this.

You want to freeze certain table rows in place?, or just specific <td> in the row. Or disallow sorting on specific columns?
I should probably implement all three options. Do you have a screenshot you could share?

Thanks for opening the issue.

@nyenius
Copy link

nyenius commented Jun 5, 2022

Yes, me too I need the bottow row which contains 'Total' and blanks to be excluded from the sort.

@LeeWannacott
Copy link
Owner

LeeWannacott commented May 18, 2023

@nyenius Sorry for late reply 😅 I think the idiomatic way to do that would be to put the total row in a <tfoot> tag. Implement freezing rows at some point : /

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

3 participants