Observable
  Component
    BoxComponent
      Container
        Menu

Class Ext.menu.Menu

Package:Ext.menu
Defined In:Menu.js
Class:Menu
Subclasses:ColorMenu, DateMenu
Extends:Container

A menu object. This is the container to which you may add menu items. Menu can also serve as a base class when you want a specialized menu based off of another component (like Ext.menu.DateMenu for example).

Menus may contain either menu items, or general Components.

To make a contained general Component line up with other menu items specify iconCls: 'no-icon'. This reserves a space for an icon, and indents the Component in line with the other menu items. See Ext.form.ComboBox.getListParent for an example.

By default, Menus are absolutely positioned, floating Components. By configuring a Menu with floating:false, a Menu may be used as child of a Container.

Config Options

Config OptionsDefined By
 allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
 allowOtherMenus : Boolean
True to allow multiple menus to be displayed at the same time (defaults to false)
Menu
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 disabled : Boolean
Render this component disabled (default is false).
Component
 disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
 enableScrolling : Boolean
True to allow the menu container to have scroller controls if the menu is too long (defaults to true).
Menu
 hidden : Boolean
Render this component hidden (default is false). If true, the hide method will be called internally.
Component
 items : Mixed
An array of items to be added to this menu. Menus may contain either menu items, or general Components.
Menu
 layoutConfig : Object
This is a config object containing properties specific to the chosen layout if layout has been specified as a string.

Container
 maxHeight : Number
The maximum height of the menu. Only applies when enableScrolling is set to True (defaults to null).
Menu
 minWidth : Number
The minimum width of the menu in pixels (defaults to 120)
Menu
 pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
 pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
 plain : Boolean
True to remove the incised line down the left side of the menu. Defaults to false.
Menu
 resizeEvent : String
The event to listen to for resizing in layouts. Defaults to 'resize'.
Container
 scrollIncrement : Number
The amount to scroll the menu. Only applies when enableScrolling is set to True (defaults to 24).
Menu
 showSeparator : Boolean
True to show the icon separator. (defaults to true).
Menu
 subMenuAlign : String
The Ext.Element.alignTo anchor position value to use for submenus of this menu (defaults to 'tl-tr?')
Menu
 x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
 y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

PropertyDefined By
 disabled : Boolean
True if this component is disabled. Read-only.
Component
 hidden : Boolean
True if this component is hidden. Read-only.
Component
 initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
 items : MixedCollection
The collection of components in this container as a Ext.util.MixedCollection
Container
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By