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