Skip to content
Browse files

Autocomplete: Document the _resizeMenu extension point.

  • Loading branch information...
1 parent 8cf0b10 commit a2a19155e879b7712c2377c19648b29ded3d522e @tjvantoll tjvantoll committed Sep 25, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 entries/autocomplete.xml
View
11 entries/autocomplete.xml
@@ -229,6 +229,17 @@ _renderMenu: function( ul, items ) {
]]></code>
</example>
</method>
+ <method name="_resizeMenu">
+ <desc>Method responsible for sizing the menu before it is displayed. The menu element is available at <code>this.menu.element</code>.</desc>
+ <example>
+ <desc>Always display the menu as 500 pixels wide.</desc>
+ <code><![CDATA[
+_resizeMenu: function() {
+ this.menu.element.outerWidth( 500 );
+}
+]]></code>
+ </example>
+ </method>
</extension-points>
<example>
<desc>A simple jQuery UI Autocomplete</desc>

0 comments on commit a2a1915

Please sign in to comment.
Something went wrong with that request. Please try again.