demos: added wrappers for sortables

This commit is contained in:
Paul Bakaus 2008-12-31 14:17:03 +00:00
parent 64adc9136f
commit 24f46c501e
8 changed files with 96 additions and 8 deletions

View File

@ -8,8 +8,8 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
li { margin: 3px; padding: 2px; width: 120px; }
.demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; }
.demo li { margin: 3px; padding: 2px; width: 120px; }
</style>
<script type="text/javascript">
$(function() {
@ -20,6 +20,7 @@
</script>
</head>
<body>
<div class="demo">
<ul>
<li class="ui-state-default">Item 1</li>
@ -37,5 +38,15 @@
<li class="ui-state-highlight">Item 5</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -8,8 +8,8 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
ul { list-style-type: none; margin: 0; padding: 0; }
li { margin: 3px; padding: 2px; }
.demo ul { list-style-type: none; margin: 0; padding: 0; }
.demo li { margin: 3px; padding: 2px; }
</style>
<script type="text/javascript">
$(function() {
@ -18,6 +18,7 @@
</script>
</head>
<body>
<div class="demo">
<ul>
<li class="ui-state-default">Item 1</li>
@ -32,5 +33,15 @@
<li class="ui-state-default">Item 10</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -8,8 +8,8 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 20px; }
li { margin: 3px; padding: 2px; }
.demo ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 20px; }
.demo li { margin: 3px; padding: 2px; }
</style>
<script type="text/javascript">
$(function() {
@ -26,6 +26,7 @@
</script>
</head>
<body>
<div class="demo">
<p>Delay of 1000ms</p>
@ -47,5 +48,15 @@
<li class="ui-state-default">Item 5</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -8,8 +8,8 @@
<script type="text/javascript" src="../../ui/ui.sortable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 133px;}
li { margin: 3px; padding: 2px; width: 120px; }
.demo ul { list-style-type: none; margin: 0; padding: 0; float: left; margin-right: 10px; background: #eee; padding: 5px; width: 133px;}
.demo li { margin: 3px; padding: 2px; width: 120px; }
</style>
<script type="text/javascript">
$(function() {
@ -25,6 +25,7 @@
</script>
</head>
<body>
<div class="demo">
<ul class='droptrue'>
<li class="ui-state-default">Can be dropped..</li>
@ -47,5 +48,15 @@
<br clear="both" />
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -27,6 +27,7 @@
</script>
</head>
<body>
<div class="demo">
<div id="droppable" class="ui-widget-header">
<p>Drop a list item on me - sortable items are automatically connected to droppables.</p>
@ -40,5 +41,15 @@
<li class="ui-state-default">Item 5</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -18,6 +18,7 @@
</script>
</head>
<body>
<div class="demo">
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
@ -34,5 +35,15 @@
<li class="ui-state-default">Item 12</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -23,6 +23,7 @@
</script>
</head>
<body>
<div class="demo">
<p>Completely exclude items from the sorting logic using the 'items' option</p>
@ -44,5 +45,15 @@
<li class="ui-state-default">Item 5</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>

View File

@ -20,6 +20,7 @@
</script>
</head>
<body>
<div class="demo">
<ul id="sortable">
<li class="ui-state-default">Item 1</li>
@ -34,5 +35,15 @@
<li class="ui-state-default">Item 10</li>
</ul>
</div><!-- End demo -->
<div class="demo-description">
<p>
The easiest way to make an element draggable. Hold down the mouse and drag it around.
</p>
</div><!-- End demo-description -->
</body>
</html>