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

How to style active sort column? #1571

Closed
VictorChen opened this issue Aug 24, 2017 · 4 comments
Closed

How to style active sort column? #1571

VictorChen opened this issue Aug 24, 2017 · 4 comments

Comments

@VictorChen
Copy link
Contributor

I've looked through the docs and examples but couldn't figure out how to style the current sorted column header. Basically, I want to change the color of the <th> that's being sorted, eg:

screen shot 2017-08-24 at 10 21 08 am

There doesn't seem to be anything to indicate that the column is being sorted?

@prajapati-parth
Copy link
Contributor

Hi @VictorChen, please consider #1458. This can even help you style entire column that is sorted.
Thanks.

@VictorChen
Copy link
Contributor Author

Hi @prajapati-parth, thanks for that. It still seems like a lot of work for something this simple though... Would be great if it added an active class to the <th> by default... or perhaps expose another table option like activeSortColumnClassName

@AllenFang
Copy link
Owner

AllenFang commented Aug 26, 2017

Firstly, thanks @prajapati-parth 's answer 👍
@VictorChen I'll consider to make it more simple, thanks

@AllenFang
Copy link
Owner

Fixed on v4.0.4, check example and let me know if bug or any idea, thanks

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

No branches or pull requests

3 participants