Browser and OS versions: MacOS Catalina (10.15.1) / Chrome 78.0.3904.108
Question
Is there any solid documentation for the renderFilteredItems() utility function exported from the select package? It is briefly mentioned under the itemListRenderer props section of the select component documentation, but the only other mention I can find of it is in this issue #3281 ans well as a brief mention in a changelog.
In the itemListRenderer props section it is stated that it supports a noResults state, but it doesn't say how to use it and it doesn't render the noResults defined on the Select/Suggest component..
The text was updated successfully, but these errors were encountered:
I figured it out. Would be nice with a short entry in the docs though.
To other confused souls:
Pass the first and only argument given to the itemListRenderer directly on as the first argument for renderFilteredItems, which will render the filtered items as defined in your itemRenderer. Then you can pass a component for displaying noResults as the second argument:
Environment
Question
Is there any solid documentation for the
renderFilteredItems()utility function exported from theselectpackage? It is briefly mentioned under theitemListRendererprops section of theselectcomponent documentation, but the only other mention I can find of it is in this issue #3281 ans well as a brief mention in a changelog.In the
itemListRendererprops section it is stated that it supports anoResultsstate, but it doesn't say how to use it and it doesn't render thenoResultsdefined on theSelect/Suggestcomponent..The text was updated successfully, but these errors were encountered: