选择精炼机元素 [英] Choose refiners' elements

查看:65
本文介绍了选择精炼机元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以选择显示在过滤器中的精炼元素?我只是希望用户只能过滤特定项目?

Is there any way to choose refiner elements that show up in a filter? I just wanted users to be able to only filter on specific items?

假设我有一列质量":良好",平均",差"和精炼厂",我希望人们只选择良好"和平均"?

Let's say I have a column Quality with terms: good, average, poor and in refiners I want people to only choose good and average?

推荐答案

coolick81您好,

Hi coolick81,

根据您的要求,您可以使用jQuery代码隐藏不想显示的精简元素.

For your requirement, you can use jQuery code to hide the refiner elements that you don't want to show.

供您参考的演示

<script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script> 
<script type="text/javascript">


(function(){
(function () {


("[title〜='poor' ]").hide(); }); </script>
("[title~='poor']").hide(); }); </script>

谢谢

温迪


这篇关于选择精炼机元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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