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

Class Ext.menu.ColorMenu

Package:Ext.menu
Defined In:ColorMenu.js
Class:ColorMenu
Extends:Menu

A menu containing a Ext.ColorPalette Component.

Notes:

  • Although not listed here, the constructor for this class accepts all of the configuration options of Ext.ColorPalette.
  • If subclassing ColorMenu, any configuration options for the ColorPalette must be applied to the initialConfig property of the ColorMenu. Applying ColorPalette configuration settings to this will not affect the ColorPalette's configuration.
*

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
 hidden : Boolean
Render this component hidden (default is false). If true, the hide method will be called internally.
Component
 hideOnClick : Boolean
False to continue showing the menu after a color is selected, defaults to true.
ColorMenu
 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
 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
 paletteId : String
An id to assign to the underlying color palette. Defaults to null.
ColorMenu
 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
 scope : Object
The scope (this reference) in which the handler function will be called. Defaults to this ColorMenu instance.
ColorMenu
 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
 zIndex : Number
zIndex to use when the menu is floating.
Menu

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
 palette : ColorPalette The {@link Ext.ColorPalette} instance for this ColorMenu
ColorMenu
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By