Showing a tooltip on page load or other events

Components, Ajax Framework, Utilities and More.
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

User avatar
Melloware
Posts: 122
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 Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.0 / PF Extensions 6.0.0

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], bigzidane and 18 guests