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

widget - static row #120

Closed
thezoggy opened this issue Aug 10, 2012 · 5 comments
Closed

widget - static row #120

thezoggy opened this issue Aug 10, 2012 · 5 comments
Labels
Milestone

Comments

@thezoggy
Copy link
Collaborator

Found this yesterday while browsing:

http://asciisoup.wordpress.com/2011/02/20/static-rows-widget-for-jquery-tablesorter/
https://github.com/ascii-soup/Tablesorter-Static-Row-Plugin

I have not tested it out, but figured I'd pass it along here since I haven't seen you on irc.

@Mottie
Copy link
Owner

Mottie commented Aug 10, 2012

Cool nice find!

@Mottie
Copy link
Owner

Mottie commented Apr 21, 2014

Added an updated static row widget which works on tables with multiple tbodies and allows dynamic updating of the row index.

@thezoggy
Copy link
Collaborator Author

how about the possibly of setting the 'static' row by double clicking on it?

@Mottie
Copy link
Owner

Mottie commented Apr 22, 2014

Hey @thezoggy!

Try this (demo):

$(function () {
    $('table').tablesorter({
        theme: 'blue',
        widgets: ['zebra', 'staticRow']
    });

    $('tr').dblclick(function(){
        $(this).toggleClass('static');
        $('table').trigger('staticRowsRefresh');
    });

});

Odd... I noticed that sometimes when I sort, the widgets aren't being updated. I think it's the code to prevent multiple consecutive "applyWidgets".

@thezoggy
Copy link
Collaborator Author

demo works great, nice

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

No branches or pull requests

2 participants