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

Allow passing TemplateRef/component type to tooltip #8357

Closed
IliaVolk opened this issue Nov 10, 2017 · 3 comments
Closed

Allow passing TemplateRef/component type to tooltip #8357

IliaVolk opened this issue Nov 10, 2017 · 3 comments

Comments

@IliaVolk
Copy link

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Allow creating tooltip from ng-template or component type and change it dynamically
At least ng-template
Something like:

<span [matTooltip]="tooltipTemplate">I have a tooltip</span>
<ng-template #tooltipTemplate>
     <b>Bold</b> message
</ng-template>

What is the current behavior?

Only strings allowed

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

Allow to greater customize tooltip message

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

all

Is there anything else we should know?

@willshowell
Copy link
Contributor

See #5440 (comment) for why the team doesn't plan to support it. You may be interested in #2691.

@josephperrott
Copy link
Member

Closing as duplicate of #5440

@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 7, 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

3 participants