summaryrefslogtreecommitdiff
path: root/includes/js/dojox/widget/tests/test_Iterator.html
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/widget/tests/test_Iterator.html
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/widget/tests/test_Iterator.html')
-rw-r--r--includes/js/dojox/widget/tests/test_Iterator.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/includes/js/dojox/widget/tests/test_Iterator.html b/includes/js/dojox/widget/tests/test_Iterator.html
new file mode 100644
index 0000000..7cf82ff
--- /dev/null
+++ b/includes/js/dojox/widget/tests/test_Iterator.html
@@ -0,0 +1,73 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <title>Dojox Iterator Test</title>
+ <style type="text/css">
+ @import "../../../dojo/resources/dojo.css";
+ @import "../../../dijit/themes/tundra/tundra.css";
+ @import "../../../dijit/themes/dijit.css";
+ @import "../../../dijit/tests/css/dijitTests.css";
+ </style>
+
+ <script type="text/javascript" src="../../../dojo/dojo.js"
+ djConfig="isDebug: true, debugAtAllCosts: false, parseOnLoad: true"></script>
+ <script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
+ <script type="text/javascript">
+ dojo.require("dijit.layout.TabContainer");
+ dojo.require("dijit.layout.SplitContainer");
+ dojo.require("dojo.data.ItemFileReadStore");
+ dojo.require("dojox.widget.Iterator");
+ dojo.require("dojo.parser"); // scan page for widgets and instantiate them
+ </script>
+</head>
+<body>
+
+ <h1 class="testTitle">Dojox Iterator test</h1>
+
+ <div dojoType="dojo.data.ItemFileReadStore"
+ url="../../../dijit/tests/_data/countries.json"
+ jsId="stateStore"></div>
+
+ <h3>Data store backed Iterator</h3>
+ <ul>
+ <li>before</li>
+ <li dojoType="dojox.widget.Iterator"
+ query="{ name: 'A*' }"
+ store="stateStore">
+ ${name}
+ </li>
+ <li>after</li>
+ </ul>
+
+ <h3>Array backed Iterator</h3>
+ <ul>
+ <li>before</li>
+ <script>
+ var tdata = [
+ { thinger: "blah", name: "named:" },
+ { thinger: "..." },
+ { thinger: "w00t!" }
+ ];
+ </script>
+ <li dojoType="dojox.widget.Iterator"
+ defaultValue="*this space intentionally left blank*"
+ data="tdata">
+ ${name} ${thinger}
+ </li>
+ <li>after</li>
+ </ul>
+
+ <h3>Array-property Iterator</h3>
+ <ul>
+ <li>before</li>
+ <li>blah</li>
+ <li dojoType="dojox.widget.Iterator"
+ dataValues="thinger, blah, blah">
+ ${value}
+ </li>
+ <li>after</li>
+ </ul>
+
+</body>
+</html>