<iron-data-table
에 filter
속성을 어떻게 추가합니까? (plunk 데모를 게시하십시오.)폴리머 1.x : 철 - 데이터 테이블을 필터링하는 방법은 무엇입니까?
I forked this plunk. 그런 다음 다음 줄을 추가하여 필터를 추가하려고 시도했습니다.
<iron-data-table
...
filter="['item.user.name.first.length', '< 5']">
plunk를 부습니다. Here is the new (now broken) plunk.
The documentation here describes the filter
attribute as follows
filter
항목을 필터링하는 데 사용되는 경로 필터/값 쌍을 포함하는 배열.
그러나 사용 방법의 예는 부족합니다.
<iron-data-table
에 filter
속성을 어떻게 추가합니까?
+1. 하지만 어떻게 당신이 설명하는'dataSource' 함수를 구현합니까? [여기에 내 구체적인 질문입니다] (http://stackoverflow.com/q/40250746/1640892). – Mowzer