You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already asked this on SO a while ago but got no answers, so trying my luck here:
I have a general tablesorter class, .tablesorter, with which I associate the simplest tablesorter:
$('.tablesorter').tablesorter();
However, in some cases I want to override this, for example with disabled sort headers, etc. However, this doesn't seem to work, and I am only able to get the original behavior. Is this normal? Is there anything I can do to make this work?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
To disable specific columns dynamically, toggling the header cell's sortDisabled property (demo), then apply a sort:
$('table').tablesorter();$('button').click(function(){// disable sorting for a specific column$('th')[1].sortDisabled=true;// remove any sorting$('table').trigger('sorton',[[[0,2]]]);});
I already asked this on SO a while ago but got no answers, so trying my luck here:
I have a general tablesorter class, .tablesorter, with which I associate the simplest tablesorter:
$('.tablesorter').tablesorter();
However, in some cases I want to override this, for example with disabled sort headers, etc. However, this doesn't seem to work, and I am only able to get the original behavior. Is this normal? Is there anything I can do to make this work?
Thanks in advance.
The text was updated successfully, but these errors were encountered: