renderSortOptions in <ReactiveList /> available
Like renderResultStats or renderNoResults, make renderSortOptions for customisation.
https://github.com/appbaseio/reactivesearch/blob/next/packages/web/src/components/result/ReactiveList.js#L616
Hey @kud This sounds good. Open to accept PRs on this. :)
Hey, I would like to work on this
Sure you can work on this 👍
Hey @kud @jyash97 Need to clear some points.
renderNoResults and renderSortOptions are written in similar manner, and render to the dom as follows.
.......{this.props.sortOptions ? this.renderSortOptions() : null}
{!this.props.isLoading && !error && filteredResults.length === 0? this.renderNoResults(): null}......
renderResultStats is implemented with conditional rendering using if/else statements.
It seems that renderSortOptions is not so different from renderResultStats or renderNoResults.
Therefore, need to clear the following 2 questions.
- What kind of customization is needed for
renderSortOptions? - What kind of output should be given with
renderSortOptions,once the customization is done?