diff options
author | 2008-11-13 09:49:11 +0000 | |
---|---|---|
committer | 2008-11-13 09:49:11 +0000 | |
commit | e44a7e37b6c7b5961adaffc62b9042b8d442938e (patch) | |
tree | 95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojo/tests/dnd/test_container.html | |
parent | a62b9742ee5e28bcec6872d88f50f25b820914f6 (diff) | |
download | scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz scuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.zip |
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/dojo/tests/dnd/test_container.html')
-rw-r--r-- | includes/js/dojo/tests/dnd/test_container.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/includes/js/dojo/tests/dnd/test_container.html b/includes/js/dojo/tests/dnd/test_container.html new file mode 100644 index 0000000..352aa7a --- /dev/null +++ b/includes/js/dojo/tests/dnd/test_container.html @@ -0,0 +1,74 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <title>Dojo DnD container test</title> + <style type="text/css"> + @import "../../resources/dojo.css"; + @import "dndDefault.css"; + + body { + padding: 20px; + } + + </style> + <script type="text/javascript" src="../../dojo.js" djConfig="isDebug: true"></script> + <script type="text/javascript" src="../../dnd/Container.js"></script> + <script type="text/javascript"> + // dojo.require("dojo.dnd.Container"); + var c1, c2, c3, c4, c5; + var init = function(){ + c1 = new dojo.dnd.Container(dojo.byId("container1")); + c2 = new dojo.dnd.Container(dojo.byId("container2")); + c3 = new dojo.dnd.Container(dojo.byId("container3")); + c4 = new dojo.dnd.Container(dojo.byId("container4")); + c5 = new dojo.dnd.Container(dojo.byId("container5")); + }; + dojo.addOnLoad(init); + </script> +</head> +<body> + <h1>Dojo DnD container test</h1> + <p>Containers have a notion of a "current container", and one element can be "current".</p> + <p>see <a href="dndDefault.css">dndDefault.css</a> for example styling</p> + <h2>DIV container</h2> + <div id="container1" class="container"> + <div class="dojoDndItem">Item 1</div> + <div class="dojoDndItem">Item 2</div> + <div class="dojoDndItem">Item 3</div> + </div> + <h2>UL container</h2> + <ul id="container2" class="container"> + <li class="dojoDndItem">Item 1</li> + <li class="dojoDndItem">Item 2</li> + <li class="dojoDndItem">Item 3</li> + </ul> + <h2>OL container</h2> + <ol id="container3" class="container"> + <li class="dojoDndItem">Item 1</li> + <li class="dojoDndItem">Item 2</li> + <li class="dojoDndItem">Item 3</li> + </ol> + <h2>TABLE container</h2> + <table id="container4" class="container" border="1px solid black"> + <tr class="dojoDndItem"> + <td>A</td> + <td>row 1</td> + </tr> + <tr class="dojoDndItem"> + <td>B</td> + <td>row 2</td> + </tr> + <tr class="dojoDndItem"> + <td>C</td> + <td>row 3</td> + </tr> + </table> + <h2>P container with SPAN elements</h2> + <p>Elements of this container are layed out horizontally.</p> + <p id="container5" class="container"> + <span class="dojoDndItem"> Item 1 </span> + <span class="dojoDndItem"> Item 2 </span> + <span class="dojoDndItem"> Item 3 </span> + </p> +</body> +</html> |