X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/DatePicker.html diff --git a/docs/source/DatePicker.html b/docs/source/DatePicker.html index 6bf30a85..e2ef9b2a 100644 --- a/docs/source/DatePicker.html +++ b/docs/source/DatePicker.html @@ -27,32 +27,33 @@ * Applying {@link Ext.picker.Date DatePicker} configuration settings to * <b><tt>this</tt></b> will <b>not</b> affect the DatePicker's configuration.</li> * </ul></div> + * * {@img Ext.menu.DatePicker/Ext.menu.DatePicker.png Ext.menu.DatePicker component} + * * __Example Usage__ - var dateMenu = Ext.create('Ext.menu.DatePicker', { - handler: function(dp, date){ - Ext.Msg.alert('Date Selected', 'You choose {0}.', Ext.Date.format(date, 'M j, Y')); - - } - }); - - Ext.create('Ext.menu.Menu', { - width: 100, - height: 90, - floating: false, // usually you want this set to True (default) - renderTo: Ext.getBody(), // usually rendered by it's containing component - items: [{ - text: 'choose a date', - menu: dateMenu - },{ - iconCls: 'add16', - text: 'icon item' - },{ - text: 'regular item' - }] - }); - - * @xtype datemenu + * + * var dateMenu = Ext.create('Ext.menu.DatePicker', { + * handler: function(dp, date){ + * Ext.Msg.alert('Date Selected', 'You choose {0}.', Ext.Date.format(date, 'M j, Y')); + * } + * }); + * + * Ext.create('Ext.menu.Menu', { + * width: 100, + * height: 90, + * floating: false, // usually you want this set to True (default) + * renderTo: Ext.getBody(), // usually rendered by it's containing component + * items: [{ + * text: 'choose a date', + * menu: dateMenu + * },{ + * iconCls: 'add16', + * text: 'icon item' + * },{ + * text: 'regular item' + * }] + * }); + * * @author Nicolas Ferrero */ Ext.define('Ext.menu.DatePicker', { @@ -103,6 +104,8 @@ Ext.apply(me, { showSeparator: false, plain: true, + border: false, + bodyPadding: 0, // remove the body padding from the datepicker menu item so it looks like 3.3 items: Ext.applyIf({ cls: Ext.baseCSSPrefix + 'menu-date-item', id: me.pickerId,