aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java11
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java8
2 files changed, 19 insertions, 0 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
index e946c434..76472098 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java
@@ -1742,6 +1742,17 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> {
}
/**
+ * Toggle the visibility of all matched elements by adjusting their opacity and
+ * firing an optional callback after completion. Only the opacity is adjusted for
+ * this animation, meaning that all of the matched elements should already
+ * have some form of height and width associated with them.
+ */
+ public Effects fadeToggle(int millisecs, Function... f) {
+ return as(Effects).fadeToggle(millisecs, f);
+ }
+
+
+ /**
* Removes all elements from the set of matched elements that do not match the
* specified function. The function is called with a context equal to the
* current element. If the function returns false, then the element is removed
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java
index a499cff9..db127353 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java
@@ -926,6 +926,14 @@ public interface LazyGQuery<T> extends LazyBase<T>{
LazyGQuery<T> fadeOut(int millisecs, Function... f);
/**
+ * Toggle the visibility of all matched elements by adjusting their opacity and
+ * firing an optional callback after completion. Only the opacity is adjusted for
+ * this animation, meaning that all of the matched elements should already
+ * have some form of height and width associated with them.
+ */
+ Effects fadeToggle(int millisecs, Function... f);
+
+ /**
* Removes all elements from the set of matched elements that do not match the
* specified function. The function is called with a context equal to the
* current element. If the function returns false, then the element is removed