I get stuck while adding even/odd color strips to table rows in ember-table.
Regular CSS selector :even :odd won't work because the lazy table will reusing existing limited number of row elements, so the first element in DOM may not be the first row on screen nor array of data.
Did anyone solve this issue before?
I found a way to do that.
In Table class, rows property
In Row class
computedRowStylemethodWhatever value set in
rowStylewill be shown in row element class, so only need to add two more styles in CSSember-row-evenodd-evenandember-row-evenodd-odd