在电子商务子类别中使用ReactiveSearch的示例 [英] Examples of using ReactiveSearch with ecommerce sub categories

查看:52
本文介绍了在电子商务子类别中使用ReactiveSearch的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我对ReactiveSearch的印象非常深刻,但是我看不到将其用于子类别的任何示例.

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

此示例非常适合没有子类别的过滤器和类别: https://opensource.appbase.io/reactivesearch/demos/producthunt/

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?

谢谢,菲尔

推荐答案

我们目前不支持此功能.以前的版本曾经有一个用于执行此操作的组件,我们将其称为NestedList/NestedMultiList,但在某些方面存在限制.

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.

今天首选的方法是使用 ReactiveComponent 并带来支持嵌套列表行为的设计组件.ReactiveComponent允许您通过解耦关联的查询来绑定任何UI组件.您可以配置任何查询(子类别行为将是一个或多个带有must子句的术语查询),并使它的行为与其他任何ReactiveSearch组件一样.

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.

这篇关于在电子商务子类别中使用ReactiveSearch的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆