diff options
author | Chi Cheng <cloudream@gmail.com> | 2009-03-08 14:13:16 +0000 |
---|---|---|
committer | Chi Cheng <cloudream@gmail.com> | 2009-03-08 14:13:16 +0000 |
commit | af3b838fdeade6e949697801f8240041e6593292 (patch) | |
tree | 4b9ddac719167eaffb6e31f38a257642e30671d9 /demos | |
parent | b25247ec6df32a8c303fd56dc1b9796afdec4f25 (diff) | |
download | jquery-ui-af3b838fdeade6e949697801f8240041e6593292.tar.gz jquery-ui-af3b838fdeade6e949697801f8240041e6593292.zip |
Demo: resizable helper
Diffstat (limited to 'demos')
-rw-r--r-- | demos/resizable/helper.html | 38 | ||||
-rw-r--r-- | demos/resizable/index.html | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/demos/resizable/helper.html b/demos/resizable/helper.html new file mode 100644 index 000000000..116b29872 --- /dev/null +++ b/demos/resizable/helper.html @@ -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"> + +<p>Display only an outline of the element while resizing by setting the <code>helper</code> option to a CSS class.</p> + +</div><!-- End demo-description --> +</body> +</html> diff --git a/demos/resizable/index.html b/demos/resizable/index.html index 561b5bf87..ac1037c4e 100644 --- a/demos/resizable/index.html +++ b/demos/resizable/index.html @@ -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> |