Examples of using ReactiveSearch with ecommerce sub categories

和自甴很熟 提交于 2020-07-10 08:11:10

问题


I'm really impressed with ReactiveSearch so far but I can't see any examples of using it with sub categories.

This example looks great for filters and categories where there are no sub categories: https://opensource.appbase.io/reactivesearch/demos/producthunt/

Is there a way to drill down to sub categories when a category is clicked?

Thanks, Phil


回答1:


we don't support this out of the box currently. A previous version used to have a component for doing this, we called it NestedList / NestedMultiList, but it was limiting in some ways.

The preferred way to do this today is using ReactiveComponent and bringing your design component which supports nested list behavior. ReactiveComponent allows you to bind any UI component by decoupling the associated query to trigger. You can configure any query (it would be one or more term(s) queries with a must clause for the sub-category behavior) and have this behave just like any other ReactiveSearch component.



来源:https://stackoverflow.com/questions/55437233/examples-of-using-reactivesearch-with-ecommerce-sub-categories

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!