index.mustache revision 046ea4d1ee0f22d956cd360e1e0c0b275aa4bbd0
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma<div class="intro">
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma<p>The Resize Utility allows you to make an HTML element resizable.</p>
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma{{>getting-started}}
<p>You can create a simple Resize instance by including the `resize` module or `base-resize` submodule and using the following code:</p>
var resize = new Y.Resize({
<td>Handles the resize event. Fired with every native `mousemove` event when the handle is being dragged; this could be as often as once for every pixel of movement.</td>
<td>Handles the resize end event. Fired when the user releases the handle from the drag operation.</td>
<p>Resize for YUI 3 has been broken up into several modules to allow you, as the implementer, to target the specific functionality you want — and omit the functionality you're not using.</p>
<td>This is the base Resize class; use this submodule for your simplest use case, where constraints, ratios, and proxies are not required.</td>
<p>Along with the standalone utility, a Resize plugin is available and can be plugged into Y.Node or Y.Widget instances. The plugin can be created by adding `resize-plugin` in your use statement, and then plugging in `Y.Plugin.Resize`.</p>
var overlay = new Y.Overlay({
<p>With the resize plugin being plugged into a Y.Widget instance, resize events can be listened to under the `resize` namespace. The resize plugin will automatically change `width` and `height` attributes on the widget (and the `x` , `y` attributes if your widget uses `Y.WidgetPosition`).</p>
overlay.resize.on('resize:resize', function(event) {