-resizer.on(<em>"resize"</em>, myHandler);</code></pre>
-<p>To hide a particular handle, set its display to none in CSS, or through script:<br>
-resizer.east.setDisplayed(false);</p> </div>
-
- <div class="hr"></div>
- <a id="Ext.Resizable-configs"></a>
- <h2>Config Options</h2>
- <table cellspacing="0" class="member-table">
- <tr>
- <th class="sig-header" colspan="2">Config Options</th>
- <th class="msource-header">Defined By</th>
- </tr>
- <tr class="config-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-adjustments"></a>\r
- <b>adjustments</b> : Array/String <div class="mdesc">\r
- <div class="short">String "auto" or an array [width, height] with values to be added to the resize operation's new size (defaults to [0,...</div>\r
- <div class="long">\r
- String "auto" or an array [width, height] with values to be <b>added</b> to the resize operation's new size (defaults to [0, 0]) </div>\r
- </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-animate"></a>\r
- <b>animate</b> : Boolean <div class="mdesc">\r
- True to animate the resize (not compatible with dynamic sizing, defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-constrainTo"></a>\r
- <b>constrainTo</b> : Mixed <div class="mdesc">\r
- Constrain the resize to a particular element </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-disableTrackOver"></a>\r
- <b>disableTrackOver</b> : Boolean <div class="mdesc">\r
- True to disable mouse tracking. This is only applied at config time. (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-draggable"></a>\r
- <b>draggable</b> : Boolean <div class="mdesc">\r
- Convenience to initialize drag drop (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-duration"></a>\r
- <b>duration</b> : Number <div class="mdesc">\r
- Animation duration if animate = true (defaults to .35) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-dynamic"></a>\r
- <b>dynamic</b> : Boolean <div class="mdesc">\r
- True to resize the element while dragging instead of using a proxy (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-easing"></a>\r
- <b>easing</b> : String <div class="mdesc">\r
- Animation easing if animate = true (defaults to 'easingOutStrong') </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-enabled"></a>\r
- <b>enabled</b> : Boolean <div class="mdesc">\r
- False to disable resizing (defaults to true) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-handles"></a>\r
- <b>handles</b> : String <div class="mdesc">\r
- String consisting of the resize handles to display (defaults to undefined) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-height"></a>\r
- <b>height</b> : Number <div class="mdesc">\r
- The height of the element in pixels (defaults to null) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-heightIncrement"></a>\r
- <b>heightIncrement</b> : Number <div class="mdesc">\r
- The increment to snap the height resize in pixels (dynamic must be true, defaults to 0) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row inherited expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-listeners"></a>\r
- <b>listeners</b> : Object <div class="mdesc">\r
- <div class="short">(optional) A config object containing one or more event handlers to be added to this object during initialization. Th...</div>\r
- <div class="long">\r
- (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>\r
- </div>\r
- </td>\r
- <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-maxHeight"></a>\r
- <b>maxHeight</b> : Number <div class="mdesc">\r
- The maximum height for the element (defaults to 10000) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-maxWidth"></a>\r
- <b>maxWidth</b> : Number <div class="mdesc">\r
- The maximum width for the element (defaults to 10000) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-minHeight"></a>\r
- <b>minHeight</b> : Number <div class="mdesc">\r
- The minimum height for the element (defaults to 5) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-minWidth"></a>\r
- <b>minWidth</b> : Number <div class="mdesc">\r
- The minimum width for the element (defaults to 5) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-minX"></a>\r
- <b>minX</b> : Number <div class="mdesc">\r
- The minimum allowed page X for the element (only used for west resizing, defaults to 0) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-minY"></a>\r
- <b>minY</b> : Number <div class="mdesc">\r
- The minimum allowed page Y for the element (only used for north resizing, defaults to 0) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-multiDirectional"></a>\r
- <b>multiDirectional</b> : Boolean <div class="mdesc">\r
- <div class="short">Deprecated. The old style of adding multi-direction resize handles, deprecated in favor of the handles config option ...</div>\r
- <div class="long">\r
- <b>Deprecated</b>. The old style of adding multi-direction resize handles, deprecated in favor of the handles config option (defaults to false) </div>\r
- </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-pinned"></a>\r
- <b>pinned</b> : Boolean <div class="mdesc">\r
- <div class="short">True to ensure that the resize handles are always visible, false to display them only when the user mouses over the r...</div>\r
- <div class="long">\r
- True to ensure that the resize handles are always visible, false to display them only when the user mouses over the resizable borders. This is only applied at config time. (defaults to false) </div>\r
- </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-preserveRatio"></a>\r
- <b>preserveRatio</b> : Boolean <div class="mdesc">\r
- True to preserve the original ratio between height and width during resize (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-resizeChild"></a>\r
- <b>resizeChild</b> : Boolean/String/Element <div class="mdesc">\r
- True to resize the first child, or id/element to resize (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-resizeRegion"></a>\r
- <b>resizeRegion</b> : Ext.lib.Region <div class="mdesc">\r
- Constrain the resize to a particular region </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-transparent"></a>\r
- <b>transparent</b> : Boolean <div class="mdesc">\r
- True for transparent handles. This is only applied at config time. (defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-width"></a>\r
- <b>width</b> : Number <div class="mdesc">\r
- The width of the element in pixels (defaults to null) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-widthIncrement"></a>\r
- <b>widthIncrement</b> : Number <div class="mdesc">\r
- The increment to snap the width resize in pixels (dynamic must be true, defaults to 0) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="config-row alt">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-wrap"></a>\r
- <b>wrap</b> : Boolean <div class="mdesc">\r
- True to wrap an element with a div if needed (required for textareas and images, defaults to false) </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- </table>
- <a id="Ext.Resizable-props"></a>
- <h2>Public Properties</h2>
- <table cellspacing="0" class="member-table">
- <tr>
- <th class="sig-header" colspan="2">Property</th>
- <th class="msource-header">Defined By</th>
- </tr>
- <tr class="property-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-proxy"></a>\r
- <b>proxy</b> : Ext.Element. <div class="mdesc">\r
- <div class="short">The proxy Element that is resized in place of the real Element during the resize operation.
-This may be queried using...</div>\r
- <div class="long">\r
- The proxy Element that is resized in place of the real Element during the resize operation.
-This may be queried using <a ext:cls="Ext.Element" ext:member="getBox" href="output/Ext.Element.html#getBox">Ext.Element.getBox</a> to provide the new area to resize to.
-Read only. </div>\r
- </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- </table>
- <a id="Ext.Resizable-methods"></a>
- <h2>Public Methods</h2>
- <table cellspacing="0" class="member-table">
- <tr>
- <th class="sig-header" colspan="2">Method</th>
- <th class="msource-header">Defined By</th>
- </tr>
- <tr class="method-row expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-Resizable"></a>\r
- <b>Resizable</b>( <code>Mixed el</code>, <code>Object config</code> ) <div class="mdesc">\r
- <div class="short">Create a new resizable component</div>\r
- <div class="long">\r
- Create a new resizable component <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>el</code> : Mixed<div class="sub-desc">The id or element to resize</div></li><li><code>config</code> : Object<div class="sub-desc">configuration options</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code></code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource">Resizable</td>\r
- </tr>\r
- <tr class="method-row inherited alt expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-addEvents"></a>\r
- <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">\r
- <div class="short">Used to define events on this Observable</div>\r
- <div class="long">\r
- Used to define events on this Observable <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>\r
- <strong>Returns:</strong>\r
- <ul>\r
- <li><code>void</code></li>\r
- </ul>\r
- </div>\r
- </div>\r
- </div>\r
- </td>\r
- <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>\r
- </tr>\r
- <tr class="method-row inherited expandable">\r
- <td class="micon"><a class="exi" href="#expand"> </a></td>\r
- <td class="sig">\r
- <a id="Ext.Resizable-addListener"></a>\r
- <b>addListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">\r
- <div class="short">Appends an event handler to this component</div>\r
- <div class="long">\r
- Appends an event handler to this component <div class="mdetail-params">\r
- <strong>Parameters:</strong>\r
- <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
-function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration