How do I add a filter
attribute to <iron-data-table
? (Please post a plunk demo.)
I forked this plunk. Then I tried to add a filter by adding the following line:
<iron-data-table
...
filter="['item.user.name.first.length', '< 5']">
Which broke the plunk. Here is the new (now broken) plunk.
The documentation here describes the filter
attribute as follows:
filter
An array containing path/filter value pairs that are used to filter the items.
But it lacks an example of how to use it.
How do I add a filter
attribute to <iron-data-table
? (Please post a plunk demo.)