Why not use pure css for zebra striping? adding classes for odd/even
is rather oldschool...
tbody tr:nth-child(odd) { background-color: #ccc; }
Martijn
On Sun, Feb 15, 2015 at 3:56 PM, Thorsten Schöning
tschoen...@am-soft.de wrote:
Hi all,
I'm using DataView to publish some search results in
Hi all,
I'm using DataView to publish some search results in a HTML table and
what the results to format zebra style. I've found OddEvenItem for
that purpose but ran into what I find is a problem: The first item is
always rendered with CSS class even, because the index used is 0
based. That may
Hi,
I know that I'm skirting around answering your questions, but
you could add an AttributeAppender to the item based on the index.
Something like
item.add( AttributeAppender.modify( class, item.getIndex() % 2 == 1 ?
getEvenCssClass() : getOddCssClass() );
Apply further refactorings to