Custom search term to be passed as prop #463
shubhamk54
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
What is the use case here - you'd be setting setting term outside and use the component to display filtered results only? If that's the case, you can do that using an HoC. The default searchPredicate is a simply indexOf search:
So you can use composition to create a HoC that:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to pass the search term to the component like:
<DropdownTreeSelect searchTerm={'Some Name'} />
So the data list will be filtered based on the custom search text which component will receive as a prop.
Beta Was this translation helpful? Give feedback.
All reactions