Use data-if='test' to conditionally display elements. 'Test' refers to any valid javscript expression. There are som handy shortcuts available for you when setting up tests. These are currentRow (as a shortcut for the current row for the data-object in scope), previousRow and i (for index/record number).

  • () is a rock band is not a rock band

Using conditionals for grouping

If you sort your table on a specific field and compare previous and current values in your conditional you can use it to create some very simple grouping.

Conditional CSS classes

If you would like to conditionallly add a class to an element, you may use the data-class-if='test:class-name'. Test refers to any valid javascript expression.

  • ()