0

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

Melloware
  • 10,435
  • 2
  • 32
  • 62
Aleti av
  • 11
  • 6
  • Does anyone knows, how to do it ? – Aleti av Oct 07 '20 at 11:06
  • You are reading wrong documentation, you should use the https://www.primefaces.org/primeng/showcase/#/dropdown as reference. – StPaulis Oct 07 '20 at 12:10
  • The link which i shared is correct, i'm checking for a default option of a dropdown of a column, For suppose the Status NEW should be default selected and the New status related rows should appear. – Aleti av Oct 07 '20 at 12:29
  • I suggest you to read the documentation for `p-dropdown`. Maybe play a little bit in the playground on stackblitz and then try again. – StPaulis Oct 07 '20 at 12:48
  • But what is your problem or what do you want to achieve? I didn't understand you very well. Do you want to get the selected value in the dropdown? – Alba Oct 07 '20 at 14:23
  • @Alba, I need the view like the table 1 which i had attached, the default value is Qualified from the dropdown so the Status column should have the Qualified related data. – Aleti av Oct 07 '20 at 14:43
  • Maybe this example can help you: https://embed.plnkr.co/ozZJ21SeNFVA16ng4NRl/ . But if you don't put your whole code, I don't know if I can help you – Alba Oct 07 '20 at 15:04

0 Answers0