Sharepoint 2013扩展折叠Web部件 [英] Sharepoint 2013 expand collapse web parts

查看:113
本文介绍了Sharepoint 2013扩展折叠Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SharePoint网站上有一些webPart,其中大多数是相当长的列表,例如联系人/文档等的列表。我想要做的是折叠整个部分,因此除非用户想要查看整个部分,否则屏幕不会填充列表。即崩溃并扩大它。我已经看到了一些解决方案,但作为一个SharePoint新手,我正在努力将代码放在哪里并使其全部正常工作。



非常感谢提前。



我尝试了什么:



以下是我拥有的网站只是一直试图跟随,但我不知道html部分在哪里,他们正在编辑。希望有人能够一步一步地帮助我。



目标价://www.sharepointdiary.com/2014/10/expand-collapse-web-parts-in-sharepoint-using-using -jquery.html [ ^ ]

I have a few webParts on a SharePoint site, most of them are fairly long lists, e.g. a list of contacts / documents etc. What I want to be able to do is collapse the whole part, so the screen isn't filled with the list unless the user wants to view the whole lot. I.e. collapse and expand it. I have seen a few solutions, but being a SharePoint novice I am struggling as to where to put the code and get it all working.

Many thanks in advance.

What I have tried:

The following is a site I have just been trying to follow, but I don't know where the html part is that they are editing. Hopefully someone will be able to provide a step by step to assist me.

tp://www.sharepointdiary.com/2014/10/expand-collapse-web-parts-in-sharepoint-using-using-jquery.html[^]

推荐答案

您需要在拥有这些内容的网站中添加内容编辑器或脚本编辑器webpart长名单。在该webpart中,您需要从您提供的站点添加代码。



我在测试站点主页中使用了相同的代码。你可以在这里查看:



[代码演示]



如果您有任何其他疑问,请告诉我。
You need to add content editor or script editor webpart in the site where you have these long lists. In that webpart you need to add the code from the site you provide.

I have used same code in my test site home page. You can check it here:

[code demo]

Let me know if you have any other query.


这篇关于Sharepoint 2013扩展折叠Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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