81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<div class="intro">
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>This example shows the simple use case where we make an overlay resizable.</p>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<div class="example">
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync {{>simple-resize-plugin-source}}
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<h3>Setting up the Node</h3>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>First we create the HTML for an overlay along with the other content ont he page</p>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync{{>simple-resize-plugin-html}}
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>Next, we give that element some CSS to make it visible.</p>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync{{>simple-resize-plugin-css}}
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<h3>Setting up the YUI Instance</h3>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>We need to create our YUI instance and tell it to load the <code>resize-plugin</code> module, along with the 'overlay' module; If we wanted the resize to be constrained, we would also need to include the 'resize-constrain' plugin.</p>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsyncYUI().use('resize-plugin');
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<h3>Making the Widget Resizable</h3>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>When the resizable button is pressed, we plug the `Y.Overlay` instance with `Y.Plugin.Resize`.</p>
81f46059436c6145937a4cc2c7424023a289fcd8vboxsync<p>Upon instantiation, the widget's drag handles will appear and the element is resizable via drag-and-drop. The widget will be notified of x, y, width and height changes.</p>