Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to show md-tooltip on a text element when the length of text exceeds specific length. #3531

Closed
amaneer94 opened this issue Mar 9, 2017 · 5 comments
Assignees

Comments

@amaneer94
Copy link

Bug, feature request, or proposal:

I want to show dotted end text with fixed length but with tooltip when it exceeds specific text length.

@thomaspink
Copy link
Contributor

.mat-tooltip {
  max-width: 50px;
  /* or */
  /* width: 50px; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@amaneer94
Copy link
Author

looks good.

also can we show material2 tooltip conditionally?

because now it seems to be an attribute of element.

@M-a-c
Copy link
Contributor

M-a-c commented Mar 14, 2017

https://github.com/angular/material2/blob/master/src/demo-app/tooltip/tooltip-demo.html
you can call show on it as long as it as bound I believe. tooltip.show()

@andrewseguin
Copy link
Contributor

#3578 will add in the ability to enable/disable the tooltip.

@andrewseguin andrewseguin self-assigned this Mar 14, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants