examples/resizable/basic.html
authorChris <chris@roojs.com>
Mon, 25 Nov 2013 07:45:31 +0000 (15:45 +0800)
committerChris <chris@roojs.com>
Mon, 25 Nov 2013 07:45:31 +0000 (15:45 +0800)
examples/resizable/basic.html

index 8f73ca9..35535cf 100644 (file)
@@ -185,5 +185,18 @@ Warning: Snapping and preserveRatio conflict and can not be used together.
     duration:.6
 });</code></pre>
 Warning: for obvious reasons animate and dynamic resizing can not be used together.
+<img id="custom" src="sara_and_zack.jpg" width="200" height="152" style="position:absolute;left:0;top:0;"/>
+<div style="padding:8px;border:1px solid #c3daf9;background:#d9e8fb;width:150px;text-align:center;"><button id="showMe">Show Me</button></div>
+<pre class="code"><code>var custom = new Ext.Resizable('custom', {
+    wrap:true,
+    pinned:true,
+    minWidth:50,
+    minHeight: 50,
+    preserveRatio: true,
+    dynamic:true,
+    handles: 'all', // shorthand for 'n s e w ne nw se sw'
+    draggable:true
+});</code></pre>
+<hr>
 </body>
 </html>