Я хотел бы иметь фильтр ap multiSelect в моей таблице данных. Я использую компонент, но не отображается на моей странице. Как будто ничего не было
<ng-template pTemplate = "header" let-columns>
<tr>
<th *ngFor = "let col of columns" [pSortableColumn] = "col.field">
{{col.header}}
<p-sortIcon [field] = "col.field">
</p-sortIcon>
</th>
</tr>
<tr>
<th *ngFor = "let col of columns" [ngSwitch] = "col.field">
<input *ngSwitchCase = "'aa'" pInputText type = "text" (input) = "dt.filter($event.target.value, col.field, col.filterMatchMode)">
<input *ngSwitchCase = "'bb'" pInputText type = "text" (input) = "dt.filter($event.target.value, col.field, col.filterMatchMode)">
<p-multiSelect *ngSwitchCase = "'cc'" [options] = "cc_Item" defaultLabel = "All Status" (onChange) = "dt.filter($event.value, col.field, 'in')"></p-multiSelect>
</th>
</tr>
</ng-template>
В моем ts я объявил свой товар this.cc_Item = [{label: 'my data colomn', value: 'my data column'} ... ] и import { SelectItem } from 'primeng/api';. Вы имеете представление о моей проблеме?
@PardeepJain Да!





Вы добавили
primeng.cssв свое приложение?