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