Issue Type:
Enhancement
Platform:
Web
Description:
Add a renderListItem(label, count) prop support for Single/MultiDropdown/List components. Ref - https://github.com/appbaseio/reactivesearch/commit/bfacb42202032fd37c0157b294ffd2c199e360a7
This will be available in the upcoming release v2.3.2. Allows rendering your own custom list.
Function [optional]renderListItem={(label, count) => (
<div>
{label}
<span style={{ marginLeft: 5, color: 'dodgerblue' }}>
{count}
</span>
</div>
)}
cc @davidklebanoff
Most helpful comment
This will be available in the upcoming release v2.3.2. Allows rendering your own custom list.
Function[optional]customize the rendered list via a function which receives the item label and count and expects a JSX or String back. For example:
cc @davidklebanoff