在材料内部添加href工具提示

时间:2019-10-28 08:29:10

标签: angular npm angular-material tooltip

我有带有工具提示的材料信息图标。如何在工具提示中添加链接?

<i matTooltip='Make Changes<a href="https://myweb.com">here</>' matTooltipClass="tooltipFont" matTooltipPosition="above" class="fa fa-pencil" aria-hidden="true" style="float:right;margin-right: 8%"></i>

因此工具提示如下所示

进行更改here

3 个答案:

答案 0 :(得分:1)

mat工具提示中不支持HTML内容。 参考:https://github.com/angular/components/issues/5440#issuecomment-313740211

答案 1 :(得分:0)

@Pandiyan Cool提到,mat-tooltip不支持HTML。相反,您可以使用SAT Popover:https://ncstate-sat.github.io/popover/
您可以轻松地将HTML内容放入其中并根据需要进行设计。

答案 2 :(得分:0)

相关问题