r2218 - trunk/demos/resizable

r2218 - trunk/demos/resizable


Author: cloudream@gmail.com
Date: Sun Mar 8 07:13:16 2009
New Revision: 2218
Added:
trunk/demos/resizable/helper.html
Modified:
trunk/demos/resizable/index.html
Log:
Demo: resizable helper
Added: trunk/demos/resizable/helper.html
==============================================================================
--- (empty file)
+++ trunk/demos/resizable/helper.html    Sun Mar 8 07:13:16 2009
@@ -0,0 +1,38 @@
+<!doctype html>
+<html lang="en">
+<head>
+    <title>jQuery UI Resizable - Helper</title>
+    <link type="text/css" href="../../themes/base/ui.all.css"
rel="stylesheet" />
+    <script type="text/javascript" src="../../jquery-1.3.2.js"></script>
+    <script type="text/javascript" src="../../ui/ui.core.js"></script>
+    <script type="text/javascript" src="../../ui/ui.resizable.js"></script>
+    <link type="text/css" href="../demos.css" rel="stylesheet" />
+    <style type="text/css">
+    #resizable { width: 150px; height: 150px; padding: 0.5em; }
+    #resizable h3 { text-align: center; margin: 0; }
+    .ui-resizable-helper { border: 5px dotted gray; }
+    </style>
+    <script type="text/javascript">
+    $(function() {
+        $("#resizable").resizable({
+            helper: 'ui-resizable-helper'
+        });
+    });
+    </script>
+</head>
+<body>
+<div class="demo">
+    
+<div id="resizable" class="ui-widget-content">
+    <h3 class="ui-widget-header">Helper</h3>
+</div>
+
+</div><!-- End demo -->
+
+<div class="demo-description">
+
+

Display only an outline of the element while resizing by setting the
<code>helper</code> option to a CSS class.


+
+</div><!-- End demo-description -->
+</body>
+</html>
Modified: trunk/demos/resizable/index.html
==============================================================================
--- trunk/demos/resizable/index.html    (original)
+++ trunk/demos/resizable/index.html    Sun Mar 8 07:13:16 2009
@@ -18,6 +18,7 @@
        <li><a href="visual-feedback.html">Visual feedback</a></li>
        <li><a href="synchronous-resize.html">Synchronous resize</a></li>
        <li><a href="animate.html">Animate</a></li>
+        <li><a href="helper.html">Resize Helper</a></li>
    </ul>
</div>