In primeng how can we get the default dropdown value filter for a column of a table

2.5k views Asked by At

enter image description hereenter image description here enter code here <p-dropdown [options]="statuses" (onChange)="dt.filter($event.value, 'status', 'equals')" enter code here styleClass="p-column-filter" placeholder="Select a Status" enter code here[showClear]="true">enter code here enter code here <span [class]="'customer-badge status-' + option.value"> enter code here {{option.label}} enter code here enter code here enter code here

I'm reffering to this document https://www.primefaces.org/primeng/showcase/#/table/filter, here for the status column how can we make it a default selected value and that default value related rows should only display

0

There are 0 answers