Primeng: Template support for Tooltip

Created on 24 Jul 2017  路  9Comments  路  Source: primefaces/primeng

[x] bug report
[x] feature request 
[ ] support request 

I am currently using pTooltip and before that I used tooltip from ngx-bootstrap. I used to make templates and used them in my tooltip like this :

<i class="fa fa-circle text-default" aria-hidden="true" [pTooltip]="defaultTooltip" tooltipPosition="top">
<ng-template #defaultTooltip>
    Something to display
</template>

Here it displays [Object object]. I wonder if it is possible to display what is actually inside my template.

new feature

Most helpful comment

I would love this feature as well.

All 9 comments

This is not supported, changing the title according to it.

I would love this feature as well.

+1

+1

+1

+1

+1

Set escape to false, and it will render html:
<div pTooltip="Some text <br> next line" tooltipPosition="top" [escape]="false"></div>

Docs:
http://primefaces.org/primeng/#/tooltip

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Helayxa picture Helayxa  路  3Comments

pchristou picture pchristou  路  3Comments

just-paja picture just-paja  路  3Comments

Helayxa picture Helayxa  路  3Comments

cyberrranger picture cyberrranger  路  3Comments