I am working on a grid where I need to dynamically change the CSS of one of the columns based on the value from another field in the result set.
Instead of simply assigning a class like
<td class='class1'>
${firstname}
</td>
I am thinking along the lines of
{{if anotherColumnIsTrue }}
<td class='class1'>
${firstname}
</td>
{{/if}}
{{if !anotherColumnIsTrue }}
<td class='class2'>
${firstname}
</td>
{{/if}}
Do you think this idea is feasible?