How to enable HTML in Popover or Tooltip in GWTBootstrap3?

我的未来我决定 提交于 2019-12-13 18:54:10

问题


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>

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".


回答1:


you can add the attribute isHtml to true:

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

:)



来源:https://stackoverflow.com/questions/34142815/how-to-enable-html-in-popover-or-tooltip-in-gwtbootstrap3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!