27 lines
No EOL
1.2 KiB
HTML
27 lines
No EOL
1.2 KiB
HTML
<html><head><title>DateMenu.js</title><link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/></head><body><h1>DateMenu.js</h1><pre class="highlighted"><code><i>/**
|
|
* @class Ext.menu.DateMenu
|
|
* @extends Ext.menu.Menu
|
|
* A menu containing a {@link Ext.menu.DateItem} component (which provides a date picker).
|
|
* @constructor
|
|
* Creates a <b>new</b> DateMenu
|
|
* @param {Object} config Configuration options
|
|
*/</i>
|
|
Ext.menu.DateMenu = <b>function</b>(config){
|
|
Ext.menu.DateMenu.superclass.constructor.call(<b>this</b>, config);
|
|
<b>this</b>.plain = true;
|
|
<b>var</b> di = <b>new</b> Ext.menu.DateItem(config);
|
|
<b>this</b>.add(di);
|
|
<i>/**
|
|
* The {@link Ext.DatePicker} instance <b>for</b> this DateMenu
|
|
* @type DatePicker
|
|
*/</i>
|
|
<b>this</b>.picker = di.picker;
|
|
<i>/**
|
|
* @event select
|
|
* @param {DatePicker} picker
|
|
* @param {Date} date
|
|
*/</i>
|
|
<b>this</b>.relayEvents(di, ["select"]);
|
|
};
|
|
Ext.extend(Ext.menu.DateMenu, Ext.menu.Menu);</code></pre><hr><div style="font-size:10px;text-align:center;color:gray;">Ext - Copyright © 2006-2007 Ext JS, LLC<br />All rights reserved.</div>
|
|
</body></html> |