question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tool tip not support on multiline

See original GitHub issue

Bug, feature request, or proposal:

tool tip is not support on regular multiline

What is the expected behavior?

if we use the \n or the es6 string template literal(backtick ``), the break line will work

What is the current behavior?

tool tip string is not break line

What are the steps to reproduce?

put long string with /n or with back tick and see the tooltip that the words dont break lines

What is the use-case or motivation for changing an existing behavior?

Supporting multi line is very common and important

Which versions of Angular, Material, OS, browsers are affected?

2.0.0-beta.2, Latest Chrome, Windows 10

Is there anything else we should know?

One Solution for that is refactor the .mat-tooltip class, and add one more property: .mat-tooltip { white-space: pre-line; }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:13
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
nossharcommented, Jan 22, 2018

It’s possible to use following style definition to take all ‘\n’ into account:

mat-tooltip-component > .mat-tooltip { white-space: pre; }

Still it would be nice to have HTML makup inside tooltip.

2reactions
trevoradecommented, Aug 22, 2017

@shedar, I went ahead and fixed this and it’s merged into angular:master now.

I don’t know much about their release timings so you probably still have a bit of a wait ahead of you until this fix lands for you to use.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am trying to do multiline ToolTip. Linebreaking characters ...
The ToolTipTitle can't have multiple lines, but the caption can. Try it this way: StringBuilder sb = new StringBuilder(); sb.
Read more >
multiline tooltip on form field - Adobe Support Community
Solved: Hi, i need to make a document with switcher which controlling what text will be on certain positions, stopped on making the...
Read more >
Tooltip - How to display multi-line text - DevExpress Support
Team, DxTooltip is not working in multi line mode. Attached a screenshot, and below is the position configuration we used.
Read more >
How to Implement Multiline Tooltips - Win32 apps
Multiline tooltips allow text to be displayed on more than one line. They are supported by version 4.70 and later of the common...
Read more >
Multiline tooltip on 8.1.10+ - Ignition
A hacky work-around is to set the width of the tooltip so it forces the text to wrap, but this solution is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found