I want to make the message in the new line
The code in file .vm
<a id="info-config" title="$infor" class="margin-left-5 tooltip-inner aui-icon icon-help"></a>
The code in file .js
AJS.toInit(function () {
AJS.$("#info-config").tooltip();
});
The code in file .java
StringBuilder configInfo = new StringBuilder(
"Hello world \n ").append("My name ABC \n");
I try some character like \n , \r , \\ , 
 , 
 , but it not work .
I also resolved this problem.
Can use "\n" but also modified .tipsy css class
.tipsy{
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.85em;
line-height: 1.42857143;
text-align: left;
white-space: pre-wrap;
}
.tipsy-inner{
text-align: left;
}
white-space: pre-wrap
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ibrahiem Mohammad I have described above. You should modify .tipsy CSS class in your CSS file. Then you can use "\n" for tool-tip breakline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was using it how you showed above, but the problem was that I was trying to change the tooltip title attribute before invoking the tooltip() method so it was in effect rewriting any attribute changes I was making.
Thanks for your answer though, it helped me understand tipsy a little bit more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.