X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Menu2.html diff --git a/docs/source/Menu2.html b/docs/source/Menu2.html index cd93875d..cba02d5e 100644 --- a/docs/source/Menu2.html +++ b/docs/source/Menu2.html @@ -1,54 +1,63 @@ -
+ +\ No newline at end of file +}); + * @class Ext.menu.Menu - * @extends Ext.panel.Panel - * - * A menu object. This is the container to which you may add {@link Ext.menu.Item menu items}. + + + + +The source code + + + + + + +* A menu object. This is the container to which you may add {@link Ext.menu.Item menu items}. * * Menus may contain either {@link Ext.menu.Item menu items}, or general {@link Ext.Component Components}. * Menus may also contain {@link Ext.panel.AbstractPanel#dockedItems docked items} because it extends {@link Ext.panel.Panel}. * * To make a contained general {@link Ext.Component Component} line up with other {@link Ext.menu.Item menu items}, - * specify `{@link Ext.menu.Item#iconCls iconCls}: 'no-icon'` _or_ `{@link Ext.menu.Item#indent indent}: true`. - * This reserves a space for an icon, and indents the Component in line with the other menu items. - * See {@link Ext.form.field.ComboBox}.{@link Ext.form.field.ComboBox#getListParent getListParent} for an example. - - * By default, Menus are absolutely positioned, floating Components. By configuring a Menu with `{@link #floating}:false`, + * specify `{@link Ext.menu.Item#plain plain}: true`. This reserves a space for an icon, and indents the Component + * in line with the other menu items. + * + * By default, Menus are absolutely positioned, floating Components. By configuring a Menu with `{@link #floating}: false`, * a Menu may be used as a child of a {@link Ext.container.Container Container}. - * {@img Ext.menu.Item/Ext.menu.Item.png Ext.menu.Item component} -__Example Usage__ - Ext.create('Ext.menu.Menu', { - width: 100, - height: 100, - margin: '0 0 10 0', - floating: false, // usually you want this set to True (default) - renderTo: Ext.getBody(), // usually rendered by it's containing component - items: [{ - text: 'regular item 1' - },{ - text: 'regular item 2' - },{ - text: 'regular item 3' - }] - }); - - Ext.create('Ext.menu.Menu', { - width: 100, - height: 100, - plain: true, - floating: false, // usually you want this set to True (default) - renderTo: Ext.getBody(), // usually rendered by it's containing component - items: [{ - text: 'plain item 1' - },{ - text: 'plain item 2' - },{ - text: 'plain item 3' - }] - }); - * @xtype menu - * @markdown - * @constructor - * @param {Object} config The config object + * + * @example + * Ext.create('Ext.menu.Menu', { + * width: 100, + * height: 100, + * margin: '0 0 10 0', + * floating: false, // usually you want this set to True (default) + * renderTo: Ext.getBody(), // usually rendered by it's containing component + * items: [{ + * text: 'regular item 1' + * },{ + * text: 'regular item 2' + * },{ + * text: 'regular item 3' + * }] + * }); + * + * Ext.create('Ext.menu.Menu', { + * width: 100, + * height: 100, + * plain: true, + * floating: false, // usually you want this set to True (default) + * renderTo: Ext.getBody(), // usually rendered by it's containing component + * items: [{ + * text: 'plain item 1' + * },{ + * text: 'plain item 2' + * },{ + * text: 'plain item 3' + * }] + * }); */ Ext.define('Ext.menu.Menu', { extend: 'Ext.panel.Panel', @@ -63,121 +72,121 @@ Ext.define('Ext.menu.Menu', { 'Ext.menu.Separator' ], -