Is there a way to disable all PF animations?

UI Components for JSF
Post Reply
mateusviccari
Posts: 13
Joined: 27 May 2013, 16:35

23 Jun 2016, 14:44

I know i can disable the animations in every component, for example:

Code: Select all

<p:selectOneMenu effect="none">...
But this way i would have to do it manually for every component... Is there a way to do this only once an apply it for every component wich supports animation?

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

23 Jun 2016, 14:50

no, you can't disable built-in animations.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

mateusviccari
Posts: 13
Joined: 27 May 2013, 16:35

23 Jun 2016, 15:02

tandraschko wrote:no, you can't disable built-in animations.
Actually you can, just discovered a solution:

I just found out that primefaces is based upon jquery UI. And searching for "disable all animations in jquery ui" i found that if you execute this javascript in the bottom of the load order:

Code: Select all

$.fx.off = true;
All the built in effects will be turned off.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

23 Jun 2016, 15:47

ahh, good point :D i mean that you can't do it on PrimeFaces level
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

mhor
Posts: 19
Joined: 08 Aug 2013, 10:50

06 Dec 2017, 15:25

When setting "$.fx.off = true;" the filter input field of selectOneMenus is not focused any more. Is there a solution to this?

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

06 Dec 2017, 17:59

Something you will probably have to investigate and debug and if you find the cause either submit a PR to GitHub or report the issue and solution.
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: No registered users and 67 guests