Showing a tooltip on page load or other events

UI Components for JSF
Post Reply
icordoba
Posts: 67
Joined: 20 Nov 2010, 19:20

12 Jan 2017, 02:27

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

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

12 Jan 2017, 14:20

Look at this example...

http://www.primefaces.org/showcase/ui/o ... ions.xhtml

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

Code: Select all

PF('widget_toolTipFocus').show();
You will see with JS you just opened the tooltip. Now type this to close it...

Code: Select all

PF('widget_toolTipFocus').hide();
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 20 guests