Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Container
        Menu

Class CQ.Ext.menu.Menu

Package:CQ.Ext.menu
Class:Menu
Subclasses:ColorMenu, DateMenu
Extends:CQ.Ext.Container
Clientlib:cq.widgets
xtype:menu

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 CQ.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 CQ.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.

@xtype menu

Config Options

Config Options Defined 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
  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
  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
  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
  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
  zIndex : Number
zIndex to use when the menu is floating.
Menu

Public Properties

Property Defined 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 CQ.Ext.util.MixedCollection
Container
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By