Alien-Web-ExtJS-V3

 view release on metacpan or  search on metacpan

share/docs/source/Menu.html  view on Meta::CPAN

 */
Ext.menu.Menu = Ext.extend(Ext.Container, {
<span id='Ext-menu-Menu-cfg-defaults'>    /**
</span>     * @cfg {Object} defaults
     * A config object that will be applied to all items added to this container either via the {@link #items}
     * config or via the {@link #add} method.  The defaults config can contain any number of
     * name/value property pairs to be added to each item, and should be valid for the types of items
     * being added to the menu.
     */
<span id='Ext-menu-Menu-cfg-items'>    /**
</span>     * @cfg {Mixed} items
     * An array of items to be added to this menu. Menus may contain either {@link Ext.menu.Item menu items},
     * or general {@link Ext.Component Component}s.
     */
<span id='Ext-menu-Menu-cfg-minWidth'>    /**
</span>     * @cfg {Number} minWidth The minimum width of the menu in pixels (defaults to 120)
     */
    minWidth : 120,
<span id='Ext-menu-Menu-cfg-shadow'>    /**
</span>     * @cfg {Boolean/String} shadow True or 'sides' for the default effect, 'frame' for 4-way shadow, and 'drop'
     * for bottom-right shadow (defaults to 'sides')
     */
    shadow : 'sides',
<span id='Ext-menu-Menu-cfg-subMenuAlign'>    /**
</span>     * @cfg {String} subMenuAlign The {@link Ext.Element#alignTo} anchor position value to use for submenus of
     * this menu (defaults to 'tl-tr?')
     */
    subMenuAlign : 'tl-tr?',
<span id='Ext-menu-Menu-cfg-defaultAlign'>    /**
</span>     * @cfg {String} defaultAlign The default {@link Ext.Element#alignTo} anchor position value for this menu
     * relative to its element of origin (defaults to 'tl-bl?')
     */
    defaultAlign : 'tl-bl?',
<span id='Ext-menu-Menu-cfg-allowOtherMenus'>    /**
</span>     * @cfg {Boolean} allowOtherMenus True to allow multiple menus to be displayed at the same time (defaults to false)
     */
    allowOtherMenus : false,
<span id='Ext-menu-Menu-cfg-ignoreParentClicks'>    /**
</span>     * @cfg {Boolean} ignoreParentClicks True to ignore clicks on any item in this menu that is a parent item (displays
     * a submenu) so that the submenu is not dismissed when clicking the parent item (defaults to false).
     */
    ignoreParentClicks : false,
<span id='Ext-menu-Menu-cfg-enableScrolling'>    /**
</span>     * @cfg {Boolean} enableScrolling True to allow the menu container to have scroller controls if the menu is too long (defaults to true).
     */
    enableScrolling : true,
<span id='Ext-menu-Menu-cfg-maxHeight'>    /**
</span>     * @cfg {Number} maxHeight The maximum height of the menu. Only applies when enableScrolling is set to True (defaults to null).
     */
    maxHeight : null,
<span id='Ext-menu-Menu-cfg-scrollIncrement'>    /**
</span>     * @cfg {Number} scrollIncrement The amount to scroll the menu. Only applies when enableScrolling is set to True (defaults to 24).
     */
    scrollIncrement : 24,
<span id='Ext-menu-Menu-cfg-showSeparator'>    /**
</span>     * @cfg {Boolean} showSeparator True to show the icon separator. (defaults to true).
     */
    showSeparator : true,
<span id='Ext-menu-Menu-cfg-defaultOffsets'>    /**
</span>     * @cfg {Array} defaultOffsets An array specifying the [x, y] offset in pixels by which to
     * change the default Menu popup position after aligning according to the {@link #defaultAlign}
     * configuration. Defaults to &lt;tt&gt;[0, 0]&lt;/tt&gt;.
     */
    defaultOffsets : [0, 0],

<span id='Ext-menu-Menu-cfg-plain'>    /**
</span>     * @cfg {Boolean} plain
     * True to remove the incised line down the left side of the menu. Defaults to &lt;tt&gt;false&lt;/tt&gt;.
     */
    plain : false,

<span id='Ext-menu-Menu-cfg-floating'>    /**
</span>     * @cfg {Boolean} floating
     * &lt;p&gt;By default, a Menu configured as &lt;b&gt;&lt;code&gt;floating:true&lt;/code&gt;&lt;/b&gt;
     * will be rendered as an {@link Ext.Layer} (an absolutely positioned,
     * floating Component with zindex=15000).
     * If configured as &lt;b&gt;&lt;code&gt;floating:false&lt;/code&gt;&lt;/b&gt;, the Menu may be
     * used as child item of another Container instead of a free-floating
     * {@link Ext.Layer Layer}.
     */
    floating : true,


<span id='Ext-menu-Menu-cfg-zIndex'>    /**
</span>     * @cfg {Number} zIndex
     * zIndex to use when the menu is floating.
     */
    zIndex: 15000,

<span id='Ext-menu-Menu-property-hidden'>    // private
</span>    hidden : true,

<span id='Ext-menu-Menu-cfg-layout'>    /**
</span>     * @cfg {String/Object} layout
     * This class assigns a default layout (&lt;code&gt;layout:'&lt;b&gt;menu&lt;/b&gt;'&lt;/code&gt;).
     * Developers &lt;i&gt;may&lt;/i&gt; override this configuration option if another layout is required.
     * See {@link Ext.Container#layout} for additional information.
     */
    layout : 'menu',
<span id='Ext-menu-Menu-property-scrollerHeight'><span id='Ext-menu-Menu-cfg-hideMode'>    hideMode : 'offsets',    // Important for laying out Components
</span></span>    scrollerHeight : 8,
<span id='Ext-menu-Menu-cfg-defaultType'><span id='Ext-menu-Menu-property-autoLayout'>    autoLayout : true,       // Provided for backwards compat
</span></span>    defaultType : 'menuitem',
<span id='Ext-menu-Menu-cfg-bufferResize'>    bufferResize : false,
</span>
<span id='Ext-menu-Menu-method-initComponent'>    initComponent : function(){
</span>        if(Ext.isArray(this.initialConfig)){
            Ext.apply(this, {items:this.initialConfig});
        }
        this.addEvents(
<span id='Ext-menu-Menu-event-click'>            /**
</span>             * @event click
             * Fires when this menu is clicked (or when the enter key is pressed while it is active)
             * @param {Ext.menu.Menu} this
            * @param {Ext.menu.Item} menuItem The menu item that was clicked
             * @param {Ext.EventObject} e
             */
            'click',
<span id='Ext-menu-Menu-event-mouseover'>            /**
</span>             * @event mouseover
             * Fires when the mouse is hovering over this menu



( run in 2.592 seconds using v1.01-cache-2.11-cpan-364913b4093 )