IBM Connections配置文件小组件编辑模式

时间:2017-01-09 22:52:19

标签: ibm-connections

我有多个小部件出现在我希望用户能够在自己的个人资料中配置的个人资料中。为此,我想使用iWidget编辑模式。 profile / myProfileView是否支持此功能?我还没有能够在窗口小部件操作菜单中显示“编辑”选项,但是可以以编程方式更改模式。

将配置模式添加到配置文件小部件有哪些要求?

到目前为止,我已经在widgets-config.xml中添加了对widgetDef的编辑:

<widgetDef defId="myBadgeId" url="/App/myBadge.xml" modes="view edit">

将supportedModes的编辑添加到窗口小部件定义xml:

<iw:iwidget name="My Widget" xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget" iScope="myWidgetClass" allowInstanceContent="true" 
supportedModes="view edit" mode="view">

并为每种模式定义了不同的内容:

<iw:content mode="view">
    <![CDATA[<div id="myWidgetRoot"></div>]]>
</iw:content>
<iw:content mode="edit">
    <![CDATA[<div id="myWidgetRoot">EDIT MODE!</div>]]>
</iw:content>

1 个答案:

答案 0 :(得分:1)

似乎个人资料不支持编辑(或搜索,整篇关于此事)。

请参阅此演示文稿中的幻灯片#35:http://www.slideshare.net/IBMSBT/ibmsbt-webinar130828

IBM SBT Webinar Slide 35