[英]Xpages adding some bold text in confirmation message
<xp:confirm>
<xp:this.message><![CDATA[#{javascript:var txt = "bold?";
"simple text" + '\n' + '\n' + txt.bold() +" another simple text." }]]>
</xp:this.message>
</xp:confirm>
But it seems the bold()
function isn't working with this approach... Can I achieve this in other way(s)? 但是似乎bold()
函数不适用于此方法...我可以通过其他方式实现这一点吗?
xp:confirm
(as part of an xp:actionGroup
) shows a simple browser alert which only supports plain text. xp:confirm
(作为xp:actionGroup
)显示了一个简单的浏览器警报,仅支持纯文本。 See this answer for instance. 例如,请参见此答案 。
If you need more than plain text, you need to use dialog boxes (for instance xp:dialog
). 如果您需要的不仅仅是纯文本,则需要使用对话框(例如xp:dialog
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.