e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<div class="intro">
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<p>This example shows the simple use case where we make an overlay resizable.</p>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<div class="example">
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra {{>simple-resize-plugin-source}}
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<h3>Setting up the Node</h3>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<p>First we create the HTML for an overlay along with the other content ont he page</p>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra{{>simple-resize-plugin-html}}
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<p>Next, we give that element some CSS to make it visible.</p>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra{{>simple-resize-plugin-css}}
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<h3>Setting up the YUI Instance</h3>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<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>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo MitraYUI().use('resize-plugin');
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<h3>Making the Widget Resizable</h3>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<p>When the resizable button is pressed, we plug the `Y.Overlay` instance with `Y.Plugin.Resize`.</p>
e1f06d991f359a17d51ffceed889ebd88e800fadTilo Mitra<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>