MultiSelect filter by object properties

UI Components for React
Post Reply
damiancerero
Posts: 6
Joined: 30 Nov 2021, 21:23

02 Dec 2021, 02:36

Good morning,

I'm trying to use MultiSelect to filter by an object property. For example:

Object car:

{owner: {name:'John Doe'}}

I couldn't figure out how to address this use case, since only top level properties could be employed in the filterBy prop. In addition, there is no filterBy function so that we could implement our custom filtering function.

Is this intended? The only workaround would be creating custom objects with fake properties, such as, in my example:

Object car:
{owner: {name:'John Doe'}, ownerName:'John Doe'}

to filter?

Is there any cleaner workaround that allows to keep the objects as they should be received by an API, for example?

Thanks in advance

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests