-
Notifications
You must be signed in to change notification settings - Fork 754
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: Hide repeating text in columns #1469
Comments
Hi @aavmurphy! That looks like a great idea! Would you mind sharing the code in a PR or paste it here and I'll add it? I would probably avoid setting the background color to white because of the different themes, but that can be fixed with css. |
If you give me some pointers, I'll try and do a PR myself, and then let you format it to your standards |
Just actually read what you wrote. I'll tidy it, and PR it |
Cool! And also please include a license statement. This project is under MIT or GPL-2.0, so it would be great if you wanted to use the same or some similar open source license. |
@Mottie Done. Added a 'same as tablesorter' license. |
Sorry for taking so long to finally get this done... I had to tweak the code a little to make it work with multiple columns. Check out the demo. |
wow. great. going to use it now! |
@Mottie Great. Working. Thanks. https://www.walkingclub.org.uk/walk/ Tweaked the CSS a little as I don't always use stripping, (and then use Bootstrap's '.table-striped' rather than the zebra widget). Could zebra be an option? (Using your doco example) Click "first name" : "first name" is correct, but "day" isnt vertically-grouped Shift-click "day" : now "day" is what I was looking for i.e. could the algorithm always be run on all columns, not just the "sorting-on" ones? |
|
I wrote a plugin for this. It hides repeated-text (and it's table cell borders) in vertical columns. Its another way of 'grouping' content together (except that you use that word for something else. Its triggered by a class in the
<th>
. It works by adding a class to the tdSo, a table like
Gets displayed as
Best to get the idea with an example :
https://www.walkingclub.org.uk/walk/
https://www.walkingclub.org.uk/hills/munros/index.shtml
The CSS I use is
Thanks for your work. Its greatly appreciated!
The text was updated successfully, but these errors were encountered: