3
* Copyright(c) 2006-2008, Ext JS, LLC.
6
* http://extjs.com/license
10
* @class Ext.menu.DateMenu
11
* @extends Ext.menu.Menu
12
* A menu containing a {@link Ext.menu.DateItem} component (which provides a date picker).
14
* Creates a new DateMenu
15
* @param {Object} config Configuration options
17
Ext.menu.DateMenu = function(config){
18
Ext.menu.DateMenu.superclass.constructor.call(this, config);
20
var di = new Ext.menu.DateItem(config);
23
* The {@link Ext.DatePicker} instance for this DateMenu
26
this.picker = di.picker;
29
* @param {DatePicker} picker
32
this.relayEvents(di, ["select"]);
34
this.on('beforeshow', function(){
36
this.picker.hideMonthPicker(true);
40
Ext.extend(Ext.menu.DateMenu, Ext.menu.Menu, {
44
beforeDestroy : function() {
45
this.picker.destroy();
b'\\ No newline at end of file'