diff options
author | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-13 09:49:11 +0000 |
---|---|---|
committer | mensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f> | 2008-11-13 09:49:11 +0000 |
commit | e44a7e37b6c7b5961adaffc62b9042b8d442938e (patch) | |
tree | 95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojo/tests/dnd/test_dnd_handles.html | |
parent | a62b9742ee5e28bcec6872d88f50f25b820914f6 (diff) | |
download | semanticscuttle-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/dojo/tests/dnd/test_dnd_handles.html')
-rw-r--r-- | includes/js/dojo/tests/dnd/test_dnd_handles.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/includes/js/dojo/tests/dnd/test_dnd_handles.html b/includes/js/dojo/tests/dnd/test_dnd_handles.html new file mode 100644 index 0000000..bcc58dc --- /dev/null +++ b/includes/js/dojo/tests/dnd/test_dnd_handles.html @@ -0,0 +1,65 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <title>Dojo DnD with handles test</title> + <style type="text/css"> + @import "../../resources/dojo.css"; + @import "../../resources/dnd.css"; + @import "dndDefault.css"; + + body { padding: 1em; background: #ededed; } + + .container { width: 100px; display: block; } + .container.handles .dojoDndHandle { background: #fee; } + .clear { clear: both; } + </style> + + <script type="text/javascript" src="../../dojo.js" djConfig="isDebug: true, parseOnLoad: true"></script> + + <script type="text/javascript" src="../../dnd/Container.js"></script> + <script type="text/javascript" src="../../dnd/Selector.js"></script> + <script type="text/javascript" src="../../dnd/Source.js"></script> + <script type="text/javascript" src="../../dnd/Avatar.js"></script> + <script type="text/javascript" src="../../dnd/Manager.js"></script> + + <script type="text/javascript"> + dojo.require("dojo.parser"); + dojo.require("dojo.dnd.Source"); + </script> +</head> +<body> + <h1 class="testTitle">Dojo DnD with handles test</h1> + + <p>Following selection modes are supported by default:</p> + <ul> + <li>Simple click — selects a single element, all other elements will be unselected.</li> + <li>Ctrl+click — toggles a selection state of an element (use Meta key on Mac).</li> + <li>Shift+click — selects a range of element from the previous anchor to the current element.</li> + <li>Ctrl+Shift+click — adds a range of element from the previous anchor to the current element (use Meta key on Mac).</li> + </ul> + <p>Following drop modes are supported by default:</p> + <ul> + <li>Simple drop — moves elements to the valid target removing them from the source. It can be used to reorganize elements within a single source/target.</li> + <li>Ctrl+drop — copies elements to the valid target (use Meta key on Mac).</li> + </ul> + + <p>Source with handles. Items should be draggable by "Item".</p> + <div dojoType="dojo.dnd.Source" jsId="c1" withHandles="true" class="container handles"> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Alpha</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Beta</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Gamma</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Delta</strong></div> + </div> + + <p>Source without handles.</p> + <div dojoType="dojo.dnd.Source" jsId="c2" class="container"> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Epsilon</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Zeta</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Eta</strong></div> + <div class="dojoDndItem"><span class="dojoDndHandle">Item</span> <strong>Theta</strong></div> + </div> + + <p>HTML after</p> + +</body> +</html> |