Topic: Change No Results found label on autocomplete

sandor farkas 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


sandor farkas 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".


sandor farkas 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!


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!



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

  • ForumUser: Priority
  • 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