Change No Results found label on autocomplete


Topic: Change No Results found label on autocomplete

sandor farkas pro premium priority asked 3 years ago

Expected behavior

I want to be able to customize the label when no result was found!

Actual behavior

Right now I'm unable to change the content of the search result when no result was found.

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/docs/b5/react/forms/autocomplete/#docsTabsAPI


Krzysztof Wilk staff answered 3 years ago

Hi!

Thanks for reporting that. We will add this functionality in the next release (12.07) :) For now - the only way to achieve that is by selecting the "No result" label with js and changing its content.

Keep coding!


sandor farkas pro premium priority answered 3 years ago

@Krzysztof Wilk Any news here? I couldn't find any update inside the documentation.


Krzysztof Wilk staff commented 3 years ago

Hi!

Yes, now you should be able to use the noResult property to achieve that. Its default value is "No results found". We just forgot to add it to the documentation - thanks for reporting that :)

Keep coding!


sandor farkas pro premium priority answered 3 years ago

@Krzysztof Wilk You mean noResultLabel right?


Krzysztof Wilk staff commented 3 years ago

No, the property for changing the no result label is called "noResult".


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: web
  • Browser: chrome
  • OS: macOs
  • Provided sample code: No
  • Provided link: Yes