0

如何在运行时将自定义功能区组添加到现有 OOB Sharepoint 功能区选项卡?

我有一个自定义 Web 部件,我想在运行时将自定义组添加到 Ribbon.Documents 上下文选项卡。

4

2 回答 2

0

You can use Javascript to create buttons. Here is the helpful link

http://www.ro.umt.com/blog/2013/11/14/creating-sharepoint-ribbon-elements-in-javascript/

if you look at the createTab() function you see you can create new group using this function CUI.Group .

于 2014-06-10T15:28:27.870 回答
0

您需要使用自定义操作来提供选项卡定义,然后在您的服务器代码中使用 SPRibbon.MakeContextualGroupInitiallyVisible 和 SPRibbon.MakeTabAvailable 来显示您的选项卡。你也可以使用 Visual Studio 的 CKS.Dev 扩展,它包含模板,这些模板有一些标记和代码来帮助你开始。

于 2012-06-01T06:56:04.127 回答