Board index JavaServer Faces General Showing a tooltip on page load or other events

Showing a tooltip on page load or other events

Components, Ajax Framework, Utilities and More.


Posts: 67
Hello,
can I show a tooltip on a button on page load, or managed via javascript or a remotecommand, so I can control the tooltips showing and hiding not by mouse hovering on the object itself?

thanks,
ignacio


Posts: 74
Look at this example...

http://www.primefaces.org/showcase/ui/overlay/tooltip/tooltipOptions.xhtml

Then in CHrome press F12 to bring up the JavaScript console and type...

PF('widget_toolTipFocus').show();


You will see with JS you just opened the tooltip. Now type this to close it...

PF('widget_toolTipFocus').hide();
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
PrimeFaces Extensions Developer
https://github.com/melloware
=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Return to General