SharePoint 2013搜索优化复选框 [英] SharePoint 2013 Search Refinement checkbox

查看:86
本文介绍了SharePoint 2013搜索优化复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我需要自定义搜索优化.我已经使用复选框配置了开箱即用的精简工具Webpart,它的工作非常正常.我有3个不同的提炼小组,例如品牌".

I have a requirement to customize search refinement. I have configured out of the box refiner webpart with checkbox and its working perfectly fine. I have 3 different refinement groups like a 'Brand'.

仅在单击复选框然后单击应用"按钮后,才会显示当前结果.我想检查是否有一种方法可以直接关联复选框以调用应用"功能,以便在用户单击复选框时, 它显示过滤器结果.每次单击其他复选框以调用应用"功能以过滤结果.

The current result displays only after clicking checkboxes and then clicking the 'Apply' button. I wanted to check if there is a way to associate a checkbox directly to call the 'Apply' function so that when user clicks the checkbox, it displays the filter results. Eachtime clicking the othercheckboxes to call the 'Appy' function to filter results.

如果您有任何样本或想法,请告诉我吗?

Will you please let me know if you have any sample or ideas?

预先感谢

Shri

推荐答案

我们可以使用JS代码来实现这一目标.

We can use JS code to achieve this.

我们可以侦听复选框的选择事件,并单击应用"的点击操作.

We can listen the selection event of the checkboxes and do click action of "Apply".

这是一个供您参考的演示,您需要根据您的问题来修改jQuery选择器.

Here is a demo for your reference and you need to modify the jQuery selector depends on your issue.

<script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js"></script>
    <script>


(function(){ //根据您的问题选择相应的复选框
(function () { //select out the check boxes depends on your issue


("input").change(function(){ //如果选中此复选框 if(
("input").change(function () { //if checkbox is selected if(


这篇关于SharePoint 2013搜索优化复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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