]> source.dussan.org Git - jquery-ui.git/commitdiff
reorganized/renamed sortable demos
authorMaggie Costello Wachs <fg.maggie@gmail.com>
Fri, 16 Jan 2009 22:51:33 +0000 (22:51 +0000)
committerMaggie Costello Wachs <fg.maggie@gmail.com>
Fri, 16 Jan 2009 22:51:33 +0000 (22:51 +0000)
demos/sortable/default.html
demos/sortable/index.html
demos/sortable/items.html
demos/sortable/placeholder.html
demos/sortable/tolerance.html

index f7397b6a903f9c44ac205a003597926e1d2baa5c..bd58f499474478d40ed45ac48b61b2d163b6b550 100644 (file)
@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="en">
 <head>
-       <title>jQuery UI Sortable - Default Demo</title>
+       <title>jQuery UI Sortable - Default functionality</title>
        <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
        <script type="text/javascript" src="../../jquery-1.3.js"></script>
        <script type="text/javascript" src="../../ui/ui.core.js"></script>
@@ -35,9 +35,7 @@
 
 <div class="demo-description">
 
-<p>
-
-</p>
+<p>Enable a group of DOM elements to be sortable. Click on and drag and element to a new spot within the list, and the other items will adjust to fit. By default, sortable items share <strong>draggable</strong> properties.</p>
 
 </div><!-- End demo-description -->
 
index 22cf8f50b4234416bfc7513e6d5631a2d1576548..0c3bd71968ce4107f990edc6349ea52854eb120a 100644 (file)
@@ -9,17 +9,15 @@
 <div class="demos-nav">
        <h4>Examples</h4>
        <ul>
-               <li class="demo-config-on"><a href="default.html">Default Sortable</a></li>
-               <li><a href="floating.html">Floating</a></li>
-               <li><a href="placeholder.html">Placeholder</a></li>
-               <li><a href="delay.html">Delay</a></li>
-               <li><a href="distance.html">Distance</a></li>
-               <li><a href="items.html">Excluding items</a></li>
-               <li><a href="connectwith.html">Connecting two lists</a></li>
-               <li><a href="droponempty.html">Dropping on empty lists</a></li>
-               <li><a href="droppable.html">Connect to droppables</a></li>
-               <li><a href="portlets.html">Portlets</a></li>
-               <li><a href="tolerance.html">Tolerance</a></li>
+               <li class="demo-config-on"><a href="default.html">Default functionality</a></li>
+               <li><a href="tolerance.html">Drop tolerance (stickiness)</a></li>
+               <li><a href="placeholder.html">Drop placeholder</a></li>
+               <li><a href="connect-lists.html">Connect lists</a></li>
+               <li><a href="empty-lists.html">Handle empty lists</a></li>
+                <li><a href="items.html">Include / exclude items</a></li>
+               <li><a href="delay-start.html">Delay start</a></li>
+               <li><a href="display-portlets.html">Display as portlets</a></li>
+               <li><a href="display-grid.html">Display as grid</a></li>                
        </ul>
 </div>
 
index 0b9898cff02f8be5a823b76179b70e31e6e30807..54b63ed8a82b628c9b24a5cf01b2e306feaa7e6f 100644 (file)
@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="en">
 <head>
-       <title>jQuery UI Sortable - Excluding Items Demo</title>
+       <title>jQuery UI Sortable - Include / exclude items</title>
        <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
        <script type="text/javascript" src="../../jquery-1.3.js"></script>
        <script type="text/javascript" src="../../ui/ui.core.js"></script>
 <body>
 <div class="demo">
 
-<p>Completely exclude items from the sorting logic using the 'items' option</p>
+<h3>Specify which items are sortable:</h3>
 
 <ul id="sortable">
        <li class="ui-state-default">Item 1</li>
-       <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
-       <li class="ui-state-default ui-state-disabled">(I'm not sortable)</li>
+       <li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
+       <li class="ui-state-default ui-state-disabled">(I'm not sortable or a drop target)</li>
        <li class="ui-state-default">Item 4</li>
 </ul>
 
-<p>Keep the items as valid targets, but non-draggable, using the 'cancel' option</p>
+<h3>Cancel sorting (but keep as drop targets):</h3>
 
 <ul id="sortable2">
        <li class="ui-state-default">Item 1</li>
@@ -47,9 +47,8 @@
 
 <div class="demo-description">
 
-<p>
-
-</p>
+<p>Specify which items are eligible to sort by passing a jQuery selector into the <strong>items</strong> option. Items excluded from this option are not sortable, nor are they valid targets for sortable items. </p>
+<p>To only prevent sorting on certain items, pass a jQuery selector into the <strong>cancel</strong> option.  Cancelled items remain valid sort targets for others.</p>
 
 </div><!-- End demo-description -->
 
index 339421c9a0e1609659afb9e95c19824575a01ea2..057297282b1f78d4477bf11ef4431298aec50900 100644 (file)
@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="en">
 <head>
-       <title>jQuery UI Sortable - Placeholder Demo</title>
+       <title>jQuery UI Sortable - Drop placeholder</title>
        <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
        <script type="text/javascript" src="../../jquery-1.3.js"></script>
        <script type="text/javascript" src="../../ui/ui.core.js"></script>
@@ -36,9 +36,7 @@
 
 <div class="demo-description">
 
-<p>
-
-</p>
+<p>When dragging a sortable item to a new location, other items will make room for the that item by shifting to allow white space between them. Pass a class into the <strong>placeholder</strong> option to style that space to be visible.  Use the boolean <strong>forcePlaceholderSize</strong> option to set dimensions on the placeholder.</p>
 
 </div><!-- End demo-description -->
 
index f90f0b58403c7543f10be018d235ed4aa3272d30..f9ad4019617e8e3c983f18c9232f8e7695f6953e 100644 (file)
@@ -1,7 +1,7 @@
 <!doctype html>
 <html lang="en">
 <head>
-       <title>jQuery UI Sortable - Tolerance Demo</title>
+       <title>jQuery UI Sortable - Drop tolerance (stickiness)</title>
        <link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
        <script type="text/javascript" src="../../jquery-1.3.js"></script>
        <script type="text/javascript" src="../../ui/ui.core.js"></script>
@@ -44,9 +44,7 @@
 
 <div class="demo-description">
 
-<p>
-
-</p>
+<p>Set the stickiness of drop areas using the <strong>tolerance</strong> option. Specify whether the drop should occur when either the pointer or intersection (mid-point of the sortable item) crosses the drop area's boundary. By default, the script guesses which option is best to use for each drag.</p>
 
 </div><!-- End demo-description -->