我几天前问过这个问题xpages在视图列中返回类图标,我理解了内容类型必须设置为"HTML"的事实.
是否可以将一些fa-icon(<span class="fa-save fa" />)与对话标题"连接" ?
<xe:dialog id="exampleDialog" refreshOnShow="true">
<span class="fa-save fa" />
<xe:this.title><![CDATA[#{javascript:"Some string returned."}]]>
// I couldn't add the <span> tag here...
</xe:this.title>
<xe:dialogContent id="dialogContent1">
....
Run Code Online (Sandbox Code Playgroud)
但图标的添加低于标题栏.
这的确有可能做到这一点:

您只需要在title属性中返回所有必需的HTML.以下是用于上图的示例:
<xe:dialog id="InputDialog" style="width:200px">
<xe:this.title><![CDATA[#{javascript:"<span class='fa-save fa' /><i>Testing</i>"}]]></xe:this.title>
<xe:dialogContent id="dialogContent1">Test content</xe:dialogContent>
</xe:dialog>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
196 次 |
| 最近记录: |