79318784

Date: 2024-12-30 22:52:49
Score: 0.5
Natty:
Report link

Adding to the suggestion from @Kellen, I had to ask a new question to figure out exactly how to access this state as it is not exposed via the api. The answer is here https://stackoverflow.com/a/79315889/9625 (Thanks to @MrOnlineCoder)

For completeness I am posting the the code-snippet in case anyone finds this question via Google as I did.

<p-datatable :value="customers" :filters="customerFilters" ref="datatable">
  ...
</p-datatable>

...

const datatable = useTemplateRef('datatable');

...

let filteredCustomers = datatable.value.processedData  
let str = "Customers in filter: "
str += filteredCustomers.map(customer => customer.fullname).join();
alert(str)
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Kellen
  • User mentioned (0): @MrOnlineCoder
  • High reputation (-1):
Posted by: njr101