cancel
Showing results for 
Search instead for 
Did you mean: 

Extending Tooltip over multiple lines?

Former Member
0 Kudos

Hi,

Is it possible to extend the tooltip over multiple lines.

At present, the whole text is showed in a single line.

Regards

MK

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Currently, tooltips are rendered using the browser's standard mechanism. Try to insert "\n" inside the text, this might work in some browsers.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Create a context attribute for tooltip say tooltip

set its value in your code say

wdContext.currentContextElement().setToolTip("Tooltip Line1""\n""Tooltip Line 2");

This works in IE6.

Regards,

Ajay

Former Member
0 Kudos

Hi,

Appending a "\n" to the string in order to get a new line works well with IE but not with Firefox. With Firefox, it ignores the "\n" character.

Anyone has any idea about something that would work for both Firefox and IE.

Also any idea on how can I format text in a tooltip like marking some of the text in BOLD, Italic etc.

Thanks

Amit Kapoor