You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if i want to display for a given search term that there are no search results i have to return a list with one special item from the search function. Then i have to make sure that the item disabled function returns true for this special item, so it cannot be selected. This is a workaround for the problem, but then i have to extend every autocomplete's search function with the logic and set the disabled item functions.
Describe the solution you'd like
I'd like to have an item template for the case that the search function returns no results. In this case the dropdown should be opened and inside it the item template should be visible.
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
I would like to do a Pull Request
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
@Mr-Technician : that PR is about MoreItemsTemplate but i need a NotFoundTemplate. I see in the changed code it is almost the same what i need, but there is a condition in the razor file which prevents the use case for emptry results (_itemsReturned > MaxItems). As you are the author of that PR could you also implement this new use case?
Oh you're right, I read this PR just a bit too quickly! Yes, I need to add docs for #4566 anyway and could add the necessary condition for a NotFoundTemplate fairly quickly. The hardest part is the unit tests. 😆
Feature request type
Enhance component
Component name
MudAutocomplete
Is your feature request related to a problem?
Right now if i want to display for a given search term that there are no search results i have to return a list with one special item from the search function. Then i have to make sure that the item disabled function returns true for this special item, so it cannot be selected. This is a workaround for the problem, but then i have to extend every autocomplete's search function with the logic and set the disabled item functions.
Describe the solution you'd like
I'd like to have an item template for the case that the search function returns no results. In this case the dropdown should be opened and inside it the item template should be visible.
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: