-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filters: Allow filters on primitive arrays #3375
Comments
Thanks @melloware - it's not that you can't select it. But with the |
Hi @melloware I updated the code sandbox with a separate Country dropdown to demonstrate the differences. You can filter countries successfully within the dropdown menu |
AHHH OK now i understand what you are asking for. :) |
OK with my fix in 8.6.2 you only need to add |
@melloware I gotta say I am SUPER impressed by PrimeReact and your speed & effort Thank you so much!!! |
Thanks for the report! I agree it should definitely support native strings and the fix was pretty easy! |
Describe the feature you would like to see added
Is it possible to add filterable dropdowns within DataTable filter templates? Dropdown's
filterBy
prop can be specified to match by name, label, etc but what about when options must be strings in the case of filter templates?Is your feature request related to a problem?
In a column with many options, it is useful to give the user the option to type and filter through the dropdown like one may expect anywhere else.
Describe the solution you'd like
The ability to use
filterBy
prop in Dropdown even when options is a list of strings rather than object.Perhaps an option to set filterBy="string" or leave filterBy unset which defaults to searching for un-nested strings in the options list.
Additional context
Here's a codesandbox with a simplified DataTable and the filterBy prop under Status column displaying the proper UI -- but not matching when you type in any valid status
The text was updated successfully, but these errors were encountered: