Created
January 11, 2019 14:29
Visual Indicator of Sort Order - Works with Stupid-Table-Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Very simple way of adding arrows that | |
* indicate column sort order. | |
* Of course, you'll need to create | |
* arrow images for the ascending and | |
* descending. | |
* This CSS is made to work with Stupid-Table-Plugin | |
* https://github.com/joequery/Stupid-Table-Plugin | |
*/ | |
th[data-sort]{ | |
cursor:pointer; | |
} | |
th[data-sort].sorting-asc::after{ | |
content: url('/images/ascending.png') ; | |
} | |
th[data-sort].sorting-desc::after{ | |
content: url('/images/descending.png') ; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is for use with https://github.com/joequery/Stupid-Table-Plugin