Primeng: Dynamic pTooltip?

Created on 13 Jan 2017  路  3Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[ x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
Using the tooltip module, the pTooltip="value" does not get updated if fed a variable. Instead, it prints out the literal variable name.

Expected behavior
It should be possible to set the pTooltip to be a variable and upon the variables value changing, update the tooltip shown.

What is the motivation / use case for changing the behavior?
Allow for dynamic tooltips!

Please tell us about your environment:
Windows 7, Angular 2, ngrx

  • Angular version:
    2.4.1

  • PrimeNG version:
    1.1.4

Most helpful comment

Try:
[pTooltip]="variableName"

Your syntax works for this case only:
pTooltip="const inline string value"

All 3 comments

Try:
[pTooltip]="variableName"

Your syntax works for this case only:
pTooltip="const inline string value"

It's not working for me [pTooltip] solution

@m-tomczyk Yeah, that does not work. [pTooltip] is not a known input of *.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dhniels picture dhniels  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

gatapia picture gatapia  路  3Comments

papiroca-tm picture papiroca-tm  路  3Comments

philly-vanilly picture philly-vanilly  路  3Comments