primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
278 stars 125 forks source link

Use element as Tooltip content. #245

Open djmj opened 8 years ago

djmj commented 8 years ago

Defining html content as javascript variable is cumbersome. What about defining a hidden element that is used as tooltip content similiar to overlay panel.

<div id="pnl"></div>
<div id="pnlTooltipContent" style="display: none;">
     This is my complex tooltip.
</div>

$('#pnlTooltipContent').puitooltip({
            for: '#pnl'
 });