From bb03416b18fc13ca14fea2087285340b138018b1 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Wed, 30 Apr 2014 07:44:38 +0200 Subject: [PATCH] Fix loop --- .../com/google/gwt/query/client/plugins/Effects.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java index 7f6ce927..64818c9c 100755 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/Effects.java @@ -562,6 +562,15 @@ public class Effects extends QueuePlugin { return animate("width: 'show'", millisecs, f); } + /** + * Toggle the visibility of all matched elements by adjusting their height and firing an optional + * callback after completion. Only the height is adjusted for this animation, causing all matched + * elements to be hidden or shown in a "sliding" manner + */ + public Effects slideToggle(Function... f) { + return as(Effects).slideToggle(Speed.DEFAULT, f); + } + /** * Toggle the visibility of all matched elements by adjusting their height and * firing an optional callback after completion. Only the height is adjusted -- 2.39.5