相关疑难解决方法(0)

xpages在视图列中返回类图标

<i class="fa-trash-o fa" /> ( from http://fortawesome.github.io/Font-Awesome/icons/ )
Run Code Online (Sandbox Code Playgroud)

我希望上面的类是列图标的结果:

<xp:this.iconSrc><![CDATA[#{javascript:var class = "fa-trash-o fa";
if (rowData.isDocument() && rowData.getDocument()!= null) {
var formName = rowData.getDocument().getItemValueString("Form");

if ( formName == "Aform") {

// How can I reffer to the class? => The icon from the class will be shown. } 

]]></xp:this.iconSrc>
Run Code Online (Sandbox Code Playgroud)

javascript xpages

1
推荐指数
1
解决办法
114
查看次数

标签 统计

javascript ×1

xpages ×1