Skip to content

{{*filter}}

Decorator that filters a list so an {{#each}} block only iterates the matching items. Place the decorator inside the each block and iterate @filteredList instead of the original list.

The comparison operator is eq (equals) or ne (not equals).

{{#each @filteredList~}}
{{*filter list attribute eq|ne value}}
...
{{/each}}

Iterating only the primary key columns of a data object:

{{#each @filteredList~}}
{{*filter dataItems isPrimaryKey eq true}}
- {{name}} ({{dataType}})
{{/each}}

To sort a list instead, use the {{*order}} decorator.