If you try to use Colorize plugin along with the wonderful tablesorter plugin with default options, it will work nicely on page load until you try sorting table columns. This will skew all row background coloring. The proper way to use both plugins together is to use the tablesorter 'zebra' widget for alternative row coloring, and the altColor:'none' option in Colorize plugin. Don't forget to declare a style for odd rows in your stylesheet, e.g.: tr.odd {background:#ECF6FC;}.
A usage example:
$("#myTable").tablesorter( {widgets: ['zebra'] }). colorize({ banDataClick: true, altColor: 'none'});
No comments:
Post a Comment