如何在Popover或GWTBootstrap3中的工具提示中启用HTML? [英] How to enable HTML in Popover or Tooltip in GWTBootstrap3?

查看:97
本文介绍了如何在Popover或GWTBootstrap3中的工具提示中启用HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Popover中用粗体写一些文本.我正在使用GWTBootstrap3.

I need to write some text within a Popover in bold. I am using GWTBootstrap3.

<g:FlowPanel addStyleNames="col-md-8">
                <b:Popover title="Enable CheckBox" content="text texttobebold" placement="RIGHT">   
                    <b:InlineCheckBox ui:field="onlineCheckbox" />
                </b:Popover >
            </g:FlowPanel>

因此,我想在以粗体显示的内容中添加一些文本.在常规引导程序中,您可以使用data-html ="true"启用html,例如,使用< strong>,但是在gwtbootstrap3中它不起作用,并且出现错误不允许使用<".

So, I want to make some text in content written in bold. In normal bootstrap you can use data-html="true" to enable html and for instance use < strong >, but in gwtbootstrap3 it doesn't work and I get an error "use of < is not allowed".

推荐答案

,您可以将属性isHtml添加到true:

you can add the attribute isHtml to true:

<b:Popover  isHtml="true" trigger="HOVER">

:)

这篇关于如何在Popover或GWTBootstrap3中的工具提示中启用HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆