[jQuery] Tablesorter 2.0 widget Problem
Hi Guys,
I'm trying Tablesorter 2.0 a little bit and using the Zebra Widget, which
works great. Now I trying to modify the Widget a little bit. But my jQuery
skills are bad - (rly bad).
So the Zebra Widget changes the CSS-Classes for each row, it should do this
to the last column too, but i dont get it working.
Tried now some many variations, I post u my last here:
Widget Code:
ts.addWidget({
id: "zebra",
format: function(table) {
if(table.config.debug) { var time = new Date(); }
$("tr:visible",table.tBodies[0])
.filter(':even')
.removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0])
.end().filter(':odd')
.removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);
$("tbody td:eq(.row1_icon)",table.tBodies[0])
.removeClass(table.config.widgetZebra.css[1]+"_icon").addClass(table.config.widgetZebra.css[0]+"_icon");
if(table.config.debug) { $.tablesorter.benchmark("Applying Zebra widget",
time); }
}
});
Maybe some of you can give a little tip, hint or an example so that i can
figure out, what to do?
Thanks for reading.
Regards
--
View this message in context: http://www.nabble.com/Tablesorter-2.0-widget-Problem-tp20462157s27240p20462157.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.