aboutsummaryrefslogtreecommitdiffstats
path: root/demos/sortable/portlets.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/sortable/portlets.html')
-rw-r--r--demos/sortable/portlets.html55
1 files changed, 28 insertions, 27 deletions
diff --git a/demos/sortable/portlets.html b/demos/sortable/portlets.html
index 95dc40e11..036819980 100644
--- a/demos/sortable/portlets.html
+++ b/demos/sortable/portlets.html
@@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
- <title>jQuery UI Sortable - Portlets Demo</title>
+ <title>jQuery UI Sortable - Portlets</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>
@@ -9,11 +9,11 @@
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
.column { width: 170px; float: left; padding-bottom: 100px; }
- .portlet { margin: 1em; }
- .portlet-header { margin: 0.3em; padding-left: 0.2em; }
+ .portlet { margin: 0 1em 1em 1em; }
+ .portlet-header { margin: 0.3em; padding-bottom: 4px; padding-left: 0.2em; }
.portlet-header .ui-icon { float: right; }
.portlet-content { padding: 0.4em; }
- .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; }
+ .ui-sortable-placeholder { border: 1px dotted black; visibility: visible !important; height: 50px !important; }
.ui-sortable-placeholder * { visibility: hidden; }
</style>
<script type="text/javascript">
@@ -41,38 +41,38 @@
<div class="column">
-<div class="portlet">
- <div class="portlet-header">Feeds</div>
- <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
-</div>
-
-<div class="portlet">
- <div class="portlet-header">News</div>
- <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
-</div>
+ <div class="portlet">
+ <div class="portlet-header">Feeds</div>
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
+ </div>
+
+ <div class="portlet">
+ <div class="portlet-header">News</div>
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
+ </div>
</div>
<div class="column">
-<div class="portlet">
- <div class="portlet-header">Shopping</div>
- <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
-</div>
+ <div class="portlet">
+ <div class="portlet-header">Shopping</div>
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
+ </div>
</div>
<div class="column">
-<div class="portlet">
- <div class="portlet-header">Links</div>
- <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
-</div>
-
-<div class="portlet">
- <div class="portlet-header">Images</div>
- <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
-</div>
+ <div class="portlet">
+ <div class="portlet-header">Links</div>
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
+ </div>
+
+ <div class="portlet">
+ <div class="portlet-header">Images</div>
+ <div class="portlet-content">Lorem ipsum dolor sit amet, consectetuer adipiscing elit</div>
+ </div>
</div>
@@ -81,7 +81,8 @@
<div class="demo-description">
<p>
-
+ Enable portlets (styled divs) as sortables and use the <code>connectWith</code>
+ option to allow sorting between columns.
</p>
</div><!-- End demo-description -->