request for custom Tree filter

UI Components for React
Post Reply
mhalle
Posts: 1
Joined: 21 Jul 2021, 00:44

25 Jan 2022, 04:06

Currently, the Tree component's filtering is done using a simple JS string "index()" of the filter values into the list of fields of the node, with the work being performed in "isFilterMatched()".

I would like to override that simple algorithm with a custom method.

Any chance that feature could be added?

One possible way to implement it (from an outsider trying to guess what it would be called) would be to augment the "filter" property. If filter is false, no filtering. If it's true, filter like today. if it's a function, replace the built-in isFilterMatched() with the function. Alternatively, you can choose another property name, and potentially another function signature.

Thanks.

mcandu
Posts: 107
Joined: 20 Jan 2021, 16:31

11 Feb 2022, 11:13

Hi,

Could you please create github ticket about this request ?

Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest