[英]GXT text format in Tooltip in Grid
I have a string stored in DB / textarea
. 我在DB /
textarea
存储了一个字符串。 If i try `System.out.println(text); 如果我尝试`System.out.println(text); The output is:
输出为:
Test text
it is good
i am a line after a line break actually.
http://aaaaaaaaa.bbbbbbbbb.cccccccccc.ddddddddd.com/testtesttesttest
Unix path :
/test/home/user/tester/
Then i tried to use the function panel.getGrid().setTooltip(text);
然后我尝试使用功能
panel.getGrid().setTooltip(text);
The text in the tooltip showing as : 工具提示中的文本显示为:
Test text it is good i am line after a line break
actually.
http://aaaaaaaaa.bbbbbbbbb.cccccccccc.ddddddddd.com/testtesttesttest Unix
path : /test/home/user/tester/
It is not the format i want, how to showing the tooltip with right format? 这不是我想要的格式,如何以正确的格式显示工具提示?
I am using void com.extjs.gxt.ui.client.widget.Component.setToolTip(String text)
and the version is 2.4.0 or 2.3.0 我正在使用
void com.extjs.gxt.ui.client.widget.Component.setToolTip(String text)
并且版本是2.4.0或2.3.0
********Update********** ********更新**********
I found that System.err.println(view.getGrid().getToopTip().getHtml());
我发现
System.err.println(view.getGrid().getToopTip().getHtml());
is showing the correct HTML format, how to make the Tooltips showing this format? 显示正确的HTML格式,如何使工具提示显示此格式?
I think tooltips use html. 我认为工具提示使用html。 Are you using html line breaks
<br>
? 您是否使用html换行符
<br>
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.