summaryrefslogtreecommitdiff
path: root/includes/js/dojox/fx/ext-dojo
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
commite44a7e37b6c7b5961adaffc62b9042b8d442938e (patch)
tree95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojox/fx/ext-dojo
parenta62b9742ee5e28bcec6872d88f50f25b820914f6 (diff)
downloadsemanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz
semanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.bz2
New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/fx/ext-dojo')
-rw-r--r--includes/js/dojox/fx/ext-dojo/NodeList.js66
1 files changed, 66 insertions, 0 deletions
diff --git a/includes/js/dojox/fx/ext-dojo/NodeList.js b/includes/js/dojox/fx/ext-dojo/NodeList.js
new file mode 100644
index 0000000..486b5fe
--- /dev/null
+++ b/includes/js/dojox/fx/ext-dojo/NodeList.js
@@ -0,0 +1,66 @@
+if(!dojo._hasResource["dojox.fx.ext-dojo.NodeList"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
+dojo._hasResource["dojox.fx.ext-dojo.NodeList"] = true;
+dojo.provide("dojox.fx.ext-dojo.NodeList");
+dojo.experimental("dojox.fx.ext-dojo.NodeList");
+// summary: Core extensions to dojo.NodeList providing addtional fx to dojo.NodeList-fx
+// description:
+// A Package to extend dojo base NodeList with fx provided by the dojox.fx project.
+// These are experimental animations, in an experimental
+
+dojo.require("dojo.NodeList-fx");
+dojo.require("dojox.fx");
+
+dojo.extend(dojo.NodeList, {
+
+ sizeTo: function(args){
+ // summary:
+ // size all elements of this NodeList. Returns an instance of dojo._Animation
+ // example:
+ // | // size all divs with class "blah"
+ // | dojo.query("div.blah").sizeTo({
+ // | width:50,
+ // | height:50
+ // | }).play();
+ return this._anim(dojox.fx, "sizeTo", args); // dojo._Animation
+ },
+
+ slideBy: function(args){
+ // summary:
+ // slide all elements of this NodeList. Returns an instance of dojo._Animation
+ //
+ // example:
+ // | // slide all tables with class "blah" 10 px
+ // | dojo.query("table.blah").slideBy({ top:10, left:10 }).play();
+ return this._anim(dojox.fx, "slideBy", args); // dojo._Animation
+ },
+
+ highlight: function(args){
+ // summary:
+ // highlight all elements of the node list.
+ // Returns an instance of dojo._Animation
+ // example:
+ // | // highlight all links with class "foo"
+ // | dojo.query("a.foo").hightlight().play();
+ return this._anim(dojox.fx, "highlight", args); // dojo._Animation
+ },
+
+ fadeTo: function(args){
+ // summary:
+ // fade all elements of the node list to a specified opacity
+ // example:
+ // | // fade all elements with class "bar" to to 50% opacity
+ // | dojo.query(".bar").fadeTo({ end: 0.5 }).play();
+ return this._anim(dojo,"_fade",args);
+ },
+
+ wipeTo: function(args){
+ // summary:
+ // Wipe all elements of the NodeList to a specified width: or height:
+ // example:
+ // | dojo.query(".box").wipeTo({ width: 300px }).play();
+ return this._anim(dojox.fx, "wipeTo", args);
+ }
+
+});
+
+}