-
The following shows how to display a tooltip over a button <button mat-raised-button
[mtxTooltip]="tooltipTpl"
[mtxTooltipPosition]="position.value"
aria-label="Button that displays a tooltip in various positions">
Action
</button>
<ng-template #tooltipTpl>
<div>This is a template!</div>
<div>Ceci est un modèle!</div>
<div>这是一个模板!</div>
<div>これはテンプレートです!</div>
<div class="text-right">هذا قالب!</div>
</ng-template> I wonder it is possible to pass a <button mat-raised-button
[mtxTooltip]="tooltipTpl"
[context]="{'$implicit': data}
[mtxTooltipPosition]="position.value"
aria-label="Button that displays a tooltip in various positions">
Action
</button> so that the template can use that |
Beta Was this translation helpful? Give feedback.
Answered by
nzbin
May 15, 2023
Replies: 2 comments
-
I will improve the tooltip in the next version. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The new version 15.5.0 has supported passing context. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kedevked
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new version 15.5.0 has supported passing context.