X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/source/DateMenu.html diff --git a/docs/source/DateMenu.html b/docs/source/DateMenu.html index 6674760e..4a30888c 100644 --- a/docs/source/DateMenu.html +++ b/docs/source/DateMenu.html @@ -1,5 +1,6 @@ + The source code @@ -44,6 +45,12 @@ */ hideOnClick : true, +
/** + * @cfg {String} pickerId + * An id to assign to the underlying date picker. Defaults to null. + */ + pickerId : null, +
/** * @cfg {Number} maxHeight * @hide @@ -77,9 +84,10 @@ Ext.apply(this, { plain: true, showSeparator: false, - items: this.picker = new Ext.DatePicker(Ext.apply({ + items: this.picker = new Ext.DatePicker(Ext.applyIf({ internalRender: this.strict || !Ext.isIE, - ctCls: 'x-menu-date-item' + ctCls: 'x-menu-date-item', + id: this.pickerId }, this.initialConfig)) }); this.picker.purgeListeners(); @@ -91,6 +99,7 @@ * @param {Date} date The selected date */ this.relayEvents(this.picker, ['select']); + this.on('show', this.picker.focus, this.picker); this.on('select', this.menuHide, this); if(this.handler){ this.on('select', this.handler, this.scope || this);