So you want to use Spark View Engine: Highlight Table Alt Row.
Here is how one highlights an alt row with spark, quite clean I tell you.
Assuming you have a css that like below.
tr.alt {
text-align: left;
padding: 2px;
border: 1px solid #000;
background: #ADDFFF;
}
And in your template you will call it like this.
ID | FirstName | LastName | Gender |
---|---|---|---|
${person.Id} | ${person.FirstName} | ${person.LastName} | ${person.Gender} |
Note: How I am using personIndex. It basically goes with the item, thus if you have var order in Orders, you would then say orderIndex