75266e010fe9b213dfec89d69ea93a860d8e056a.svn-base 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.menu.Menu-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.menu.Menu-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.menu.Menu-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.menu.Menu-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.menu.Menu"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
  8. </div>
  9. <div class="inheritance res-block">
  10. <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
  11. <img src="resources/elbow-end.gif"/>Menu</pre></div>
  12. <h1>Class Ext.menu.Menu</h1>
  13. <table cellspacing="0">
  14. <tr><td class="label">Package:</td><td class="hd-info">Ext.menu</td></tr>
  15. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Menu.js" target="_blank">Menu.js</a></td></tr>
  16. <tr><td class="label">Class:</td><td class="hd-info">Menu</td></tr>
  17. <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.menu.ColorMenu" href="output/Ext.menu.ColorMenu.html">ColorMenu</a>, <a ext:cls="Ext.menu.DateMenu" href="output/Ext.menu.DateMenu.html">DateMenu</a></td></tr>
  18. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr>
  19. </table>
  20. <div class="description">
  21. A menu object. This is the container to which you add all other menu items. Menu can also serve a as a base class
  22. when you want a specialzed menu based off of another component (like <a ext:cls="Ext.menu.DateMenu" href="output/Ext.menu.DateMenu.html">Ext.menu.DateMenu</a> for example). </div>
  23. <div class="hr"></div>
  24. <a id="Ext.menu.Menu-configs"></a>
  25. <h2>Config Options</h2>
  26. <table cellspacing="0" class="member-table">
  27. <tr>
  28. <th class="sig-header" colspan="2">Config Options</th>
  29. <th class="msource-header">Defined By</th>
  30. </tr>
  31. <tr class="config-row">
  32. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  33. <td class="sig">
  34. <a id="Ext.menu.Menu-allowOtherMenus"></a>
  35. <b>allowOtherMenus</b> : Boolean <div class="mdesc">
  36. True to allow multiple menus to be displayed at the same time (defaults to false) </div>
  37. </td>
  38. <td class="msource">Menu</td>
  39. </tr>
  40. <tr class="config-row alt expandable">
  41. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  42. <td class="sig">
  43. <a id="Ext.menu.Menu-defaultAlign"></a>
  44. <b>defaultAlign</b> : String <div class="mdesc">
  45. <div class="short">The default {@link Ext.Element#alignTo) anchor position value for this menu relative to its element of origin (defaul...</div>
  46. <div class="long">
  47. The default {@link Ext.Element#alignTo) anchor position value for this menu relative to its element of origin (defaults to "tl-bl?") </div>
  48. </div>
  49. </td>
  50. <td class="msource">Menu</td>
  51. </tr>
  52. <tr class="config-row expandable">
  53. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  54. <td class="sig">
  55. <a id="Ext.menu.Menu-defaults"></a>
  56. <b>defaults</b> : Object <div class="mdesc">
  57. <div class="short">A config object that will be applied to all items added to this container either via the items config or via the add ...</div>
  58. <div class="long">
  59. A config object that will be applied to all items added to this container either via the <a ext:cls="Ext.menu.Menu" ext:member="items" href="output/Ext.menu.Menu.html#items">items</a> config or via the <a ext:cls="Ext.menu.Menu" ext:member="add" href="output/Ext.menu.Menu.html#add">add</a> method. The defaults config can contain any number of name/value property pairs to be added to each item, and should be valid for the types of items being added to the menu. </div>
  60. </div>
  61. </td>
  62. <td class="msource">Menu</td>
  63. </tr>
  64. <tr class="config-row alt">
  65. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  66. <td class="sig">
  67. <a id="Ext.menu.Menu-items"></a>
  68. <b>items</b> : Mixed <div class="mdesc">
  69. An array of items to be added to this menu. See <a ext:cls="Ext.menu.Menu" ext:member="add" href="output/Ext.menu.Menu.html#add">add</a> for a list of valid item types. </div>
  70. </td>
  71. <td class="msource">Menu</td>
  72. </tr>
  73. <tr class="config-row inherited expandable">
  74. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  75. <td class="sig">
  76. <a id="Ext.menu.Menu-listeners"></a>
  77. <b>listeners</b> : Object <div class="mdesc">
  78. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  79. <div class="long">
  80. 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>
  81. </div>
  82. </td>
  83. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  84. </tr>
  85. <tr class="config-row alt">
  86. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  87. <td class="sig">
  88. <a id="Ext.menu.Menu-minWidth"></a>
  89. <b>minWidth</b> : Number <div class="mdesc">
  90. The minimum width of the menu in pixels (defaults to 120) </div>
  91. </td>
  92. <td class="msource">Menu</td>
  93. </tr>
  94. <tr class="config-row expandable">
  95. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  96. <td class="sig">
  97. <a id="Ext.menu.Menu-shadow"></a>
  98. <b>shadow</b> : Boolean/String <div class="mdesc">
  99. <div class="short">True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "si...</div>
  100. <div class="long">
  101. True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "sides") </div>
  102. </div>
  103. </td>
  104. <td class="msource">Menu</td>
  105. </tr>
  106. <tr class="config-row alt">
  107. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  108. <td class="sig">
  109. <a id="Ext.menu.Menu-subMenuAlign"></a>
  110. <b>subMenuAlign</b> : String <div class="mdesc">
  111. The <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> anchor position value to use for submenus of this menu (defaults to "tl-tr?") </div>
  112. </td>
  113. <td class="msource">Menu</td>
  114. </tr>
  115. </table>
  116. <a id="Ext.menu.Menu-props"></a>
  117. <h2>Public Properties</h2>
  118. <div class="no-members">This class has no public properties.</div> <a id="Ext.menu.Menu-methods"></a>
  119. <h2>Public Methods</h2>
  120. <table cellspacing="0" class="member-table">
  121. <tr>
  122. <th class="sig-header" colspan="2">Method</th>
  123. <th class="msource-header">Defined By</th>
  124. </tr>
  125. <tr class="method-row expandable">
  126. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  127. <td class="sig">
  128. <a id="Ext.menu.Menu-Menu"></a>
  129. <b>Menu</b>(&nbsp;<code>Object config</code>&nbsp;) <div class="mdesc">
  130. <div class="short">Creates a new Menu</div>
  131. <div class="long">
  132. Creates a new Menu <div class="mdetail-params">
  133. <strong>Parameters:</strong>
  134. <ul><li><code>config</code> : Object<div class="sub-desc">Configuration options</div></li> </ul>
  135. <strong>Returns:</strong>
  136. <ul>
  137. <li><code></code></li>
  138. </ul>
  139. </div>
  140. </div>
  141. </div>
  142. </td>
  143. <td class="msource">Menu</td>
  144. </tr>
  145. <tr class="method-row alt expandable">
  146. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  147. <td class="sig">
  148. <a id="Ext.menu.Menu-add"></a>
  149. <b>add</b>(&nbsp;<code>Mixed args</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  150. <div class="short">Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.
  151. Any of the...</div>
  152. <div class="long">
  153. Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.
  154. Any of the following are valid:
  155. <ul>
  156. <li>Any menu item object based on <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a></li>
  157. <li>An HTMLElement object which will be converted to a menu item</li>
  158. <li>A menu item config object that will be created as a new menu item</li>
  159. <li>A string, which can either be '-' or 'separator' to add a menu separator, otherwise
  160. it will be converted into a <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> and added</li>
  161. </ul>
  162. Usage:
  163. <pre><code><i>// Create the menu</i>
  164. <b>var</b> menu = <b>new</b> Ext.menu.Menu();
  165. <i>// Create a menu item to add by reference</i>
  166. <b>var</b> menuItem = <b>new</b> Ext.menu.Item({ text: <em>'New Item!'</em> });
  167. <i>// Add a bunch of items at once using different methods.</i>
  168. <i>// Only the last item added will be returned.</i>
  169. <b>var</b> item = menu.add(
  170. menuItem, <i>// add existing item by ref</i>
  171. <em>'Dynamic Item'</em>, <i>// <b>new</b> TextItem</i>
  172. <em>'-'</em>, <i>// <b>new</b> separator</i>
  173. { text: <em>'Config Item'</em> } <i>// <b>new</b> item by config</i>
  174. );</code></pre> <div class="mdetail-params">
  175. <strong>Parameters:</strong>
  176. <ul><li><code>args</code> : Mixed<div class="sub-desc">One or more menu items, menu item configs or other objects that can be converted to menu items</div></li> </ul>
  177. <strong>Returns:</strong>
  178. <ul>
  179. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added, or the last one if multiple items were added</div></li>
  180. </ul>
  181. </div>
  182. </div>
  183. </div>
  184. </td>
  185. <td class="msource">Menu</td>
  186. </tr>
  187. <tr class="method-row expandable">
  188. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  189. <td class="sig">
  190. <a id="Ext.menu.Menu-addElement"></a>
  191. <b>addElement</b>(&nbsp;<code>Mixed el</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  192. <div class="short">Adds an <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object to the menu</div>
  193. <div class="long">
  194. Adds an <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object to the menu <div class="mdetail-params">
  195. <strong>Parameters:</strong>
  196. <ul><li><code>el</code> : Mixed<div class="sub-desc">The element or DOM node to add, or its id</div></li> </ul>
  197. <strong>Returns:</strong>
  198. <ul>
  199. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  200. </ul>
  201. </div>
  202. </div>
  203. </div>
  204. </td>
  205. <td class="msource">Menu</td>
  206. </tr>
  207. <tr class="method-row inherited alt expandable">
  208. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  209. <td class="sig">
  210. <a id="Ext.menu.Menu-addEvents"></a>
  211. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  212. <div class="short">Used to define events on this Observable</div>
  213. <div class="long">
  214. Used to define events on this Observable <div class="mdetail-params">
  215. <strong>Parameters:</strong>
  216. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  217. <strong>Returns:</strong>
  218. <ul>
  219. <li><code>void</code></li>
  220. </ul>
  221. </div>
  222. </div>
  223. </div>
  224. </td>
  225. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  226. </tr>
  227. <tr class="method-row expandable">
  228. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  229. <td class="sig">
  230. <a id="Ext.menu.Menu-addItem"></a>
  231. <b>addItem</b>(&nbsp;<code>Ext.menu.Item item</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  232. <div class="short">Adds an existing object based on <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> to the menu</div>
  233. <div class="long">
  234. Adds an existing object based on <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> to the menu <div class="mdetail-params">
  235. <strong>Parameters:</strong>
  236. <ul><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to add</div></li> </ul>
  237. <strong>Returns:</strong>
  238. <ul>
  239. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  240. </ul>
  241. </div>
  242. </div>
  243. </div>
  244. </td>
  245. <td class="msource">Menu</td>
  246. </tr>
  247. <tr class="method-row inherited alt expandable">
  248. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  249. <td class="sig">
  250. <a id="Ext.menu.Menu-addListener"></a>
  251. <b>addListener</b>(&nbsp;<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>&nbsp;) : void <div class="mdesc">
  252. <div class="short">Appends an event handler to this component</div>
  253. <div class="long">
  254. Appends an event handler to this component <div class="mdetail-params">
  255. <strong>Parameters:</strong>
  256. <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
  257. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  258. properties. This may contain any of the following properties:<ul>
  259. <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
  260. <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
  261. <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
  262. <li>buffer {Number} Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
  263. by the specified number of milliseconds. If the event fires again within that time, the original
  264. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  265. </ul><br>
  266. <p>
  267. <b>Combining Options</b><br>
  268. Using the options argument, it is possible to combine different types of listeners:<br>
  269. <br>
  270. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  271. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  272. single: true,
  273. delay: 100,
  274. forumId: 4
  275. });</code></pre>
  276. <p>
  277. <b>Attaching multiple handlers in 1 call</b><br>
  278. The method also allows for a single argument to be passed which is a config object containing properties
  279. which specify multiple handlers.
  280. <p>
  281. <pre><code>foo.on({
  282. <em>'click'</em> : {
  283. fn: <b>this</b>.onClick,
  284. scope: <b>this</b>,
  285. delay: 100
  286. },
  287. <em>'mouseover'</em> : {
  288. fn: <b>this</b>.onMouseOver,
  289. scope: <b>this</b>
  290. },
  291. <em>'mouseout'</em> : {
  292. fn: <b>this</b>.onMouseOut,
  293. scope: <b>this</b>
  294. }
  295. });</code></pre>
  296. <p>
  297. Or a shorthand syntax:<br>
  298. <pre><code>foo.on({
  299. <em>'click'</em> : <b>this</b>.onClick,
  300. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  301. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  302. scope: <b>this</b>
  303. });</code></pre></div></li> </ul>
  304. <strong>Returns:</strong>
  305. <ul>
  306. <li><code>void</code></li>
  307. </ul>
  308. </div>
  309. </div>
  310. </div>
  311. </td>
  312. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  313. </tr>
  314. <tr class="method-row expandable">
  315. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  316. <td class="sig">
  317. <a id="Ext.menu.Menu-addMenuItem"></a>
  318. <b>addMenuItem</b>(&nbsp;<code>Object config</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  319. <div class="short">Creates a new <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> based an the supplied config object and adds it to the menu</div>
  320. <div class="long">
  321. Creates a new <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> based an the supplied config object and adds it to the menu <div class="mdetail-params">
  322. <strong>Parameters:</strong>
  323. <ul><li><code>config</code> : Object<div class="sub-desc">A MenuItem config object</div></li> </ul>
  324. <strong>Returns:</strong>
  325. <ul>
  326. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  327. </ul>
  328. </div>
  329. </div>
  330. </div>
  331. </td>
  332. <td class="msource">Menu</td>
  333. </tr>
  334. <tr class="method-row alt expandable">
  335. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  336. <td class="sig">
  337. <a id="Ext.menu.Menu-addSeparator"></a>
  338. <b>addSeparator</b>() : Ext.menu.Item <div class="mdesc">
  339. <div class="short">Adds a separator bar to the menu</div>
  340. <div class="long">
  341. Adds a separator bar to the menu <div class="mdetail-params">
  342. <strong>Parameters:</strong>
  343. <ul><li>None.</li> </ul>
  344. <strong>Returns:</strong>
  345. <ul>
  346. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  347. </ul>
  348. </div>
  349. </div>
  350. </div>
  351. </td>
  352. <td class="msource">Menu</td>
  353. </tr>
  354. <tr class="method-row expandable">
  355. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  356. <td class="sig">
  357. <a id="Ext.menu.Menu-addText"></a>
  358. <b>addText</b>(&nbsp;<code>String text</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  359. <div class="short">Creates a new <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> with the supplied text and adds it to the menu</div>
  360. <div class="long">
  361. Creates a new <a ext:cls="Ext.menu.TextItem" href="output/Ext.menu.TextItem.html">Ext.menu.TextItem</a> with the supplied text and adds it to the menu <div class="mdetail-params">
  362. <strong>Parameters:</strong>
  363. <ul><li><code>text</code> : String<div class="sub-desc">The text to display in the menu item</div></li> </ul>
  364. <strong>Returns:</strong>
  365. <ul>
  366. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  367. </ul>
  368. </div>
  369. </div>
  370. </div>
  371. </td>
  372. <td class="msource">Menu</td>
  373. </tr>
  374. <tr class="method-row inherited alt expandable">
  375. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  376. <td class="sig">
  377. <a id="Ext.menu.Menu-fireEvent"></a>
  378. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  379. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  380. <div class="long">
  381. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  382. <strong>Parameters:</strong>
  383. <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
  384. <strong>Returns:</strong>
  385. <ul>
  386. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  387. </ul>
  388. </div>
  389. </div>
  390. </div>
  391. </td>
  392. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  393. </tr>
  394. <tr class="method-row expandable">
  395. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  396. <td class="sig">
  397. <a id="Ext.menu.Menu-getEl"></a>
  398. <b>getEl</b>() : Ext.Element <div class="mdesc">
  399. <div class="short">Returns this menu's underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object</div>
  400. <div class="long">
  401. Returns this menu's underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object <div class="mdetail-params">
  402. <strong>Parameters:</strong>
  403. <ul><li>None.</li> </ul>
  404. <strong>Returns:</strong>
  405. <ul>
  406. <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>
  407. </ul>
  408. </div>
  409. </div>
  410. </div>
  411. </td>
  412. <td class="msource">Menu</td>
  413. </tr>
  414. <tr class="method-row inherited alt expandable">
  415. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  416. <td class="sig">
  417. <a id="Ext.menu.Menu-hasListener"></a>
  418. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  419. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  420. <div class="long">
  421. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  422. <strong>Parameters:</strong>
  423. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  424. <strong>Returns:</strong>
  425. <ul>
  426. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  427. </ul>
  428. </div>
  429. </div>
  430. </div>
  431. </td>
  432. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  433. </tr>
  434. <tr class="method-row expandable">
  435. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  436. <td class="sig">
  437. <a id="Ext.menu.Menu-hide"></a>
  438. <b>hide</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean deep</code>]</span>&nbsp;) : void <div class="mdesc">
  439. <div class="short">Hides this menu and optionally all parent menus</div>
  440. <div class="long">
  441. Hides this menu and optionally all parent menus <div class="mdetail-params">
  442. <strong>Parameters:</strong>
  443. <ul><li><code>deep</code> : Boolean<div class="sub-desc">(optional) True to hide all parent menus recursively, if any (defaults to false)</div></li> </ul>
  444. <strong>Returns:</strong>
  445. <ul>
  446. <li><code>void</code></li>
  447. </ul>
  448. </div>
  449. </div>
  450. </div>
  451. </td>
  452. <td class="msource">Menu</td>
  453. </tr>
  454. <tr class="method-row alt expandable">
  455. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  456. <td class="sig">
  457. <a id="Ext.menu.Menu-insert"></a>
  458. <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.menu.Item item</code>&nbsp;) : Ext.menu.Item <div class="mdesc">
  459. <div class="short">Inserts an existing object based on <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> to the menu at a specified index</div>
  460. <div class="long">
  461. Inserts an existing object based on <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> to the menu at a specified index <div class="mdetail-params">
  462. <strong>Parameters:</strong>
  463. <ul><li><code>index</code> : Number<div class="sub-desc">The index in the menu's list of current items where the new item should be inserted</div></li><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to add</div></li> </ul>
  464. <strong>Returns:</strong>
  465. <ul>
  466. <li><code>Ext.menu.Item</code><div class="sub-desc">The menu item that was added</div></li>
  467. </ul>
  468. </div>
  469. </div>
  470. </div>
  471. </td>
  472. <td class="msource">Menu</td>
  473. </tr>
  474. <tr class="method-row expandable">
  475. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  476. <td class="sig">
  477. <a id="Ext.menu.Menu-isVisible"></a>
  478. <b>isVisible</b>() : void <div class="mdesc">
  479. <div class="short">Read-only. Returns true if the menu is currently displayed, else false.</div>
  480. <div class="long">
  481. Read-only. Returns true if the menu is currently displayed, else false. <div class="mdetail-params">
  482. <strong>Parameters:</strong>
  483. <ul><li>None.</li> </ul>
  484. <strong>Returns:</strong>
  485. <ul>
  486. <li><code>void</code></li>
  487. </ul>
  488. </div>
  489. </div>
  490. </div>
  491. </td>
  492. <td class="msource">Menu</td>
  493. </tr>
  494. <tr class="method-row inherited alt expandable">
  495. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  496. <td class="sig">
  497. <a id="Ext.menu.Menu-on"></a>
  498. <b>on</b>(&nbsp;<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>&nbsp;) : void <div class="mdesc">
  499. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  500. <div class="long">
  501. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  502. <strong>Parameters:</strong>
  503. <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
  504. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  505. <strong>Returns:</strong>
  506. <ul>
  507. <li><code>void</code></li>
  508. </ul>
  509. </div>
  510. </div>
  511. </div>
  512. </td>
  513. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  514. </tr>
  515. <tr class="method-row inherited expandable">
  516. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  517. <td class="sig">
  518. <a id="Ext.menu.Menu-purgeListeners"></a>
  519. <b>purgeListeners</b>() : void <div class="mdesc">
  520. <div class="short">Removes all listeners for this object</div>
  521. <div class="long">
  522. Removes all listeners for this object <div class="mdetail-params">
  523. <strong>Parameters:</strong>
  524. <ul><li>None.</li> </ul>
  525. <strong>Returns:</strong>
  526. <ul>
  527. <li><code>void</code></li>
  528. </ul>
  529. </div>
  530. </div>
  531. </div>
  532. </td>
  533. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  534. </tr>
  535. <tr class="method-row alt expandable">
  536. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  537. <td class="sig">
  538. <a id="Ext.menu.Menu-remove"></a>
  539. <b>remove</b>(&nbsp;<code>Ext.menu.Item item</code>&nbsp;) : void <div class="mdesc">
  540. <div class="short">Removes an <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> from the menu and destroys the object</div>
  541. <div class="long">
  542. Removes an <a ext:cls="Ext.menu.Item" href="output/Ext.menu.Item.html">Ext.menu.Item</a> from the menu and destroys the object <div class="mdetail-params">
  543. <strong>Parameters:</strong>
  544. <ul><li><code>item</code> : Ext.menu.Item<div class="sub-desc">The menu item to remove</div></li> </ul>
  545. <strong>Returns:</strong>
  546. <ul>
  547. <li><code>void</code></li>
  548. </ul>
  549. </div>
  550. </div>
  551. </div>
  552. </td>
  553. <td class="msource">Menu</td>
  554. </tr>
  555. <tr class="method-row expandable">
  556. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  557. <td class="sig">
  558. <a id="Ext.menu.Menu-removeAll"></a>
  559. <b>removeAll</b>() : void <div class="mdesc">
  560. <div class="short">Removes and destroys all items in the menu</div>
  561. <div class="long">
  562. Removes and destroys all items in the menu <div class="mdetail-params">
  563. <strong>Parameters:</strong>
  564. <ul><li>None.</li> </ul>
  565. <strong>Returns:</strong>
  566. <ul>
  567. <li><code>void</code></li>
  568. </ul>
  569. </div>
  570. </div>
  571. </div>
  572. </td>
  573. <td class="msource">Menu</td>
  574. </tr>
  575. <tr class="method-row inherited alt expandable">
  576. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  577. <td class="sig">
  578. <a id="Ext.menu.Menu-removeListener"></a>
  579. <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  580. <div class="short">Removes a listener</div>
  581. <div class="long">
  582. Removes a listener <div class="mdetail-params">
  583. <strong>Parameters:</strong>
  584. <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 handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  585. <strong>Returns:</strong>
  586. <ul>
  587. <li><code>void</code></li>
  588. </ul>
  589. </div>
  590. </div>
  591. </div>
  592. </td>
  593. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  594. </tr>
  595. <tr class="method-row inherited expandable">
  596. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  597. <td class="sig">
  598. <a id="Ext.menu.Menu-resumeEvents"></a>
  599. <b>resumeEvents</b>() : void <div class="mdesc">
  600. <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
  601. <div class="long">
  602. Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
  603. <strong>Parameters:</strong>
  604. <ul><li>None.</li> </ul>
  605. <strong>Returns:</strong>
  606. <ul>
  607. <li><code>void</code></li>
  608. </ul>
  609. </div>
  610. </div>
  611. </div>
  612. </td>
  613. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  614. </tr>
  615. <tr class="method-row alt expandable">
  616. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  617. <td class="sig">
  618. <a id="Ext.menu.Menu-show"></a>
  619. <b>show</b>(&nbsp;<code>Mixed element</code>, <span class="optional" title="Optional">[<code>String position</code>]</span>, <span class="optional" title="Optional">[<code>Ext.menu.Menu parentMenu</code>]</span>&nbsp;) : void <div class="mdesc">
  620. <div class="short">Displays this menu relative to another element</div>
  621. <div class="long">
  622. Displays this menu relative to another element <div class="mdetail-params">
  623. <strong>Parameters:</strong>
  624. <ul><li><code>element</code> : Mixed<div class="sub-desc">The element to align to</div></li><li><code>position</code> : String<div class="sub-desc">(optional) The <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> anchor position to use in aligning to
  625. the element (defaults to this.defaultAlign)</div></li><li><code>parentMenu</code> : Ext.menu.Menu<div class="sub-desc">(optional) This menu's parent menu, if applicable (defaults to undefined)</div></li> </ul>
  626. <strong>Returns:</strong>
  627. <ul>
  628. <li><code>void</code></li>
  629. </ul>
  630. </div>
  631. </div>
  632. </div>
  633. </td>
  634. <td class="msource">Menu</td>
  635. </tr>
  636. <tr class="method-row expandable">
  637. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  638. <td class="sig">
  639. <a id="Ext.menu.Menu-showAt"></a>
  640. <b>showAt</b>(&nbsp;<code>Array xyPosition</code>, <span class="optional" title="Optional">[<code>Ext.menu.Menu parentMenu</code>]</span>&nbsp;) : void <div class="mdesc">
  641. <div class="short">Displays this menu at a specific xy position</div>
  642. <div class="long">
  643. Displays this menu at a specific xy position <div class="mdetail-params">
  644. <strong>Parameters:</strong>
  645. <ul><li><code>xyPosition</code> : Array<div class="sub-desc">Contains X & Y [x, y] values for the position at which to show the menu (coordinates are page-based)</div></li><li><code>parentMenu</code> : Ext.menu.Menu<div class="sub-desc">(optional) This menu's parent menu, if applicable (defaults to undefined)</div></li> </ul>
  646. <strong>Returns:</strong>
  647. <ul>
  648. <li><code>void</code></li>
  649. </ul>
  650. </div>
  651. </div>
  652. </div>
  653. </td>
  654. <td class="msource">Menu</td>
  655. </tr>
  656. <tr class="method-row inherited alt expandable">
  657. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  658. <td class="sig">
  659. <a id="Ext.menu.Menu-suspendEvents"></a>
  660. <b>suspendEvents</b>() : void <div class="mdesc">
  661. <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
  662. <div class="long">
  663. Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
  664. <strong>Parameters:</strong>
  665. <ul><li>None.</li> </ul>
  666. <strong>Returns:</strong>
  667. <ul>
  668. <li><code>void</code></li>
  669. </ul>
  670. </div>
  671. </div>
  672. </div>
  673. </td>
  674. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  675. </tr>
  676. <tr class="method-row inherited expandable">
  677. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  678. <td class="sig">
  679. <a id="Ext.menu.Menu-un"></a>
  680. <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  681. <div class="short">Removes a listener (shorthand for removeListener)</div>
  682. <div class="long">
  683. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  684. <strong>Parameters:</strong>
  685. <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 handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  686. <strong>Returns:</strong>
  687. <ul>
  688. <li><code>void</code></li>
  689. </ul>
  690. </div>
  691. </div>
  692. </div>
  693. </td>
  694. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  695. </tr>
  696. </table>
  697. <a id="Ext.menu.Menu-events"></a>
  698. <h2>Public Events</h2>
  699. <table cellspacing="0" class="member-table">
  700. <tr>
  701. <th class="sig-header" colspan="2">Event</th>
  702. <th class="msource-header">Defined By</th>
  703. </tr>
  704. <tr class="event-row expandable">
  705. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  706. <td class="sig">
  707. <a id="Ext.menu.Menu-beforehide"></a>
  708. <b>beforehide</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;) <div class="mdesc">
  709. <div class="short">Fires before this menu is hidden</div>
  710. <div class="long">
  711. Fires before this menu is hidden <div class="mdetail-params">
  712. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  713. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li> </ul>
  714. </div>
  715. </div>
  716. </div>
  717. </td>
  718. <td class="msource">Menu</td>
  719. </tr>
  720. <tr class="event-row alt expandable">
  721. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  722. <td class="sig">
  723. <a id="Ext.menu.Menu-beforeshow"></a>
  724. <b>beforeshow</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;) <div class="mdesc">
  725. <div class="short">Fires before this menu is displayed</div>
  726. <div class="long">
  727. Fires before this menu is displayed <div class="mdetail-params">
  728. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  729. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li> </ul>
  730. </div>
  731. </div>
  732. </div>
  733. </td>
  734. <td class="msource">Menu</td>
  735. </tr>
  736. <tr class="event-row expandable">
  737. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  738. <td class="sig">
  739. <a id="Ext.menu.Menu-click"></a>
  740. <b>click</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.menu.Item menuItem</code>, <code>Ext.EventObject e</code>&nbsp;) <div class="mdesc">
  741. <div class="short">Fires when this menu is clicked (or when the enter key is pressed while it is active)</div>
  742. <div class="long">
  743. Fires when this menu is clicked (or when the enter key is pressed while it is active) <div class="mdetail-params">
  744. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  745. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li> </ul>
  746. </div>
  747. </div>
  748. </div>
  749. </td>
  750. <td class="msource">Menu</td>
  751. </tr>
  752. <tr class="event-row alt expandable">
  753. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  754. <td class="sig">
  755. <a id="Ext.menu.Menu-hide"></a>
  756. <b>hide</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;) <div class="mdesc">
  757. <div class="short">Fires after this menu is hidden</div>
  758. <div class="long">
  759. Fires after this menu is hidden <div class="mdetail-params">
  760. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  761. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li> </ul>
  762. </div>
  763. </div>
  764. </div>
  765. </td>
  766. <td class="msource">Menu</td>
  767. </tr>
  768. <tr class="event-row expandable">
  769. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  770. <td class="sig">
  771. <a id="Ext.menu.Menu-itemclick"></a>
  772. <b>itemclick</b> : (&nbsp;<code>Ext.menu.BaseItem baseItem</code>, <code>Ext.EventObject e</code>&nbsp;) <div class="mdesc">
  773. <div class="short">Fires when a menu item contained in this menu is clicked</div>
  774. <div class="long">
  775. Fires when a menu item contained in this menu is clicked <div class="mdetail-params">
  776. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  777. <ul><li><code>baseItem</code> : Ext.menu.BaseItem<div class="sub-desc">The BaseItem that was clicked</div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li> </ul>
  778. </div>
  779. </div>
  780. </div>
  781. </td>
  782. <td class="msource">Menu</td>
  783. </tr>
  784. <tr class="event-row alt expandable">
  785. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  786. <td class="sig">
  787. <a id="Ext.menu.Menu-mouseout"></a>
  788. <b>mouseout</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.EventObject e</code>, <code>Ext.menu.Item menuItem</code>&nbsp;) <div class="mdesc">
  789. <div class="short">Fires when the mouse exits this menu</div>
  790. <div class="long">
  791. Fires when the mouse exits this menu <div class="mdetail-params">
  792. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  793. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li> </ul>
  794. </div>
  795. </div>
  796. </div>
  797. </td>
  798. <td class="msource">Menu</td>
  799. </tr>
  800. <tr class="event-row expandable">
  801. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  802. <td class="sig">
  803. <a id="Ext.menu.Menu-mouseover"></a>
  804. <b>mouseover</b> : (&nbsp;<code>Ext.menu.Menu this</code>, <code>Ext.EventObject e</code>, <code>Ext.menu.Item menuItem</code>&nbsp;) <div class="mdesc">
  805. <div class="short">Fires when the mouse is hovering over this menu</div>
  806. <div class="long">
  807. Fires when the mouse is hovering over this menu <div class="mdetail-params">
  808. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  809. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li><li><code>menuItem</code> : Ext.menu.Item<div class="sub-desc">The menu item that was clicked</div></li> </ul>
  810. </div>
  811. </div>
  812. </div>
  813. </td>
  814. <td class="msource">Menu</td>
  815. </tr>
  816. <tr class="event-row alt expandable">
  817. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  818. <td class="sig">
  819. <a id="Ext.menu.Menu-show"></a>
  820. <b>show</b> : (&nbsp;<code>Ext.menu.Menu this</code>&nbsp;) <div class="mdesc">
  821. <div class="short">Fires after this menu is displayed</div>
  822. <div class="long">
  823. Fires after this menu is displayed <div class="mdetail-params">
  824. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  825. <ul><li><code>this</code> : Ext.menu.Menu<div class="sub-desc"></div></li> </ul>
  826. </div>
  827. </div>
  828. </div>
  829. </td>
  830. <td class="msource">Menu</td>
  831. </tr>
  832. </table>
  833. </div>