Skip to content
Permalink
Browse files

Demo: resizable helper

  • Loading branch information...
chicheng committed Mar 8, 2009
1 parent b25247e commit af3b838fdeade6e949697801f8240041e6593292
Showing with 39 additions and 0 deletions.
  1. +38 −0 demos/resizable/helper.html
  2. +1 −0 demos/resizable/index.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>
@@ -18,6 +18,7 @@ <h4>Examples</h4>
<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>

0 comments on commit af3b838

Please sign in to comment.
You can’t perform that action at this time.