|
7 | 7 |
|
8 | 8 | <p>This can be used to choose previously selected values, such as entering tags for articles or entering email addresses from an address book. Autocomplete can also be used to populate associated information, such as entering a city name and getting the zip code.</p>
|
9 | 9 |
|
10 |
| - <p>You can pull data in from a local or remote source: Local is good for small data sets, e.g., an address book with 50 entries; remote is necessary for big data sets, such as a database with hundreds or millions of entries to select from. To find out more about customizing the data soure, see the documentation for the <a href="#option-source"><code>source</code></a> option.</p> |
| 10 | + <p>You can pull data in from a local or remote source: Local is good for small data sets, e.g., an address book with 50 entries; remote is necessary for big data sets, such as a database with hundreds or millions of entries to select from. To find out more about customizing the data source, see the documentation for the <a href="#option-source"><code>source</code></a> option.</p> |
11 | 11 |
|
12 | 12 | <h3>Keyboard interaction</h3>
|
13 | 13 |
|
|
25 | 25 | <ul>
|
26 | 26 | <li>UP/DOWN - Open the menu, if the <a href="#option-minLength"><code>minLength</code></a> has been met.</li>
|
27 | 27 | </ul>
|
| 28 | + |
| 29 | + <h3>Dependencies</h3> |
| 30 | + <ul> |
| 31 | + <li><a href="/category/ui-core/">UI Core</a></li> |
| 32 | + <li><a href="/jQuery.widget/">Widget Factory</a></li> |
| 33 | + <li><a href="/position/">Position</a></li> |
| 34 | + <li><a href="/menu/">Menu</a></li> |
| 35 | + </ul> |
28 | 36 | </longdesc>
|
29 | 37 | <note id="functional-css"/>
|
| 38 | + <note id="native-change-warning"/> |
30 | 39 | <added>1.8</added>
|
31 | 40 | <options>
|
32 |
| - <option name="appendTo" type="Selector" default='"body"' example-value='"#someElem"'> |
33 |
| - <desc>Which element the menu should be appended to. Override this when the autocomplete is inside a <code>position: fixed</code> element. Otherwise the popup menu would still scroll with the page.</desc> |
| 41 | + <option name="appendTo" type="Selector" default="null" example-value='"#someElem"'> |
| 42 | + <desc>Which element the menu should be appended to. When the value is <code>null</code>, the parents of the input field will be checked for a class of <code>ui-front</code>. If an element with the <code>ui-front</code> class is found, the menu will be appended to that element. Regardless of the value, if no element is found, the menu will be appended to the body.</desc> |
34 | 43 | </option>
|
35 | 44 | <option name="autoFocus" type="Boolean" default="false" example-value="true">
|
36 | 45 | <desc>If set to <code>true</code> the first item will automatically be focused when the menu is shown.</desc>
|
|
153 | 162 | <desc></desc>
|
154 | 163 | </argument>
|
155 | 164 | </method>
|
156 |
| - <method name="widget"> |
| 165 | + <method name="widget" return="jQuery"> |
157 | 166 | <desc>Returns a <code>jQuery</code> object containing the menu element. Although the menu items are constantly created and destroyed, the menu element itself is created during initialization and is constantly reused.</desc>
|
158 | 167 | </method>
|
159 | 168 | </methods>
|
|
0 commit comments