过滤器中包含

时间:2020-09-24 13:31:41

标签: angular primeng

我在primeng中的自定义字段有问题。在列定义中,我有:

{ field: 'productofferName', header: 'Naziv produkta', type: 'productNameInfo', filter: true, filterMatchMode: 'contains', filterPlaceholder: 'Pretraži' },

现在在网格模板中我有这个:

 <template *ngIf="column.type === 'productNameInfo'" let-file="rowData" pTemplate="rowexpansion"
        let-rowIndex="rowIndex">
        {{data[rowIndex][column.field] }}
</template>

但是问题不是过滤不起作用。当我输入某个单词时,会找到该单词和其他单词。有任何建议如何解决?

0 个答案:

没有答案