tool tip not support on multiline
See original GitHub issueBug, 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:
- Created 7 years ago
- Reactions:13
- Comments:13 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.