Observable Menu ColorMenu
Package: | Ext.menu |
Defined In: | ColorMenu.js |
Class: | ColorMenu |
Extends: | Menu |
Config Options | Defined By | |
---|---|---|
allowOtherMenus : Boolean
True to allow multiple menus to be displayed at the same time (defaults to false)
|
Menu | |
defaultAlign : String The default Ext.Element.alignTo anchor position value for this menu relative to its element of origin (defaults to "t...
The default Ext.Element.alignTo anchor position value for this menu relative to its element of origin (defaults to "tl-bl?")
|
Menu | |
defaults : Object A config object that will be applied to all items added to this container either via the items config or via the add ...
|
Menu | |
ignoreParentClicks : Boolean True to ignore clicks on any item in this menu that is a parent item (displays a submenu) so that the submenu is not ...
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).
|
Menu | |
items : Mixed
An array of items to be added to this menu. See add for a list of valid item types.
|
Menu | |
listeners : Object A config object containing one or more event handlers to be added to this object during initialization. This should b...
A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
|
Observable | |
minWidth : Number
The minimum width of the menu in pixels (defaults to 120)
|
Menu | |
shadow : Boolean/String True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "si...
True or "sides" for the default effect, "frame" for 4-way shadow, and "drop" for bottom-right shadow (defaults to "sides")
|
Menu | |
subMenuAlign : String
The Ext.Element.alignTo anchor position value to use for submenus of this menu (defaults to "tl-tr?")
|
Menu |
Property | Defined By | |
---|---|---|
items : Ext.util.MixedCollection
A MixedCollection of this Menu's items
|
Menu | |
palette : ColorPalette
The Ext.ColorPalette instance for this ColorMenu
|
ColorMenu |
Method | Defined By | |
---|---|---|
ColorMenu( Object config ) Creates a new ColorMenu
Creates a new ColorMenu
Parameters:
|
ColorMenu | |
add( Mixed args ) : Ext.menu.Item Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.
Any of the...
Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.
Any of the following are valid:
Parameters:
|
Menu | |
addElement( Mixed el ) : Ext.menu.Item Adds an Ext.Element object to the menu
Adds an Ext.Element object to the menu
Parameters:
|
Menu | |
addEvents( Object object ) : void Used to define events on this Observable
Used to define events on this Observable
Parameters:
|
Observable | |
addItem( Ext.menu.Item item ) : Ext.menu.Item Adds an existing object based on Ext.menu.BaseItem to the menu
Adds an existing object based on Ext.menu.BaseItem to the menu
Parameters:
|
Menu | |
addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void Appends an event handler to this component
Appends an event handler to this component
Parameters:
|
Observable | |
addMenuItem( Object config ) : Ext.menu.Item Creates a new Ext.menu.Item based an the supplied config object and adds it to the menu
Creates a new Ext.menu.Item based an the supplied config object and adds it to the menu
Parameters:
|
Menu | |
addSeparator() : Ext.menu.Item Adds a separator bar to the menu
Adds a separator bar to the menu
Parameters:
|
Menu | |
addText( String text ) : Ext.menu.Item Creates a new Ext.menu.TextItem with the supplied text and adds it to the menu
Creates a new Ext.menu.TextItem with the supplied text and adds it to the menu
Parameters:
|
Menu | |
destroy() : void Destroys the menu by unregistering it from Ext.menu.MenuMgr, purging event listeners,
removing all of the menus item...
Destroys the menu by unregistering it from Ext.menu.MenuMgr, purging event listeners,
removing all of the menus items, then destroying the underlying Ext.Element
Parameters:
|
Menu | |
fireEvent( String eventName , Object... args ) : Boolean Fires the specified event with the passed parameters (minus the event name).
Fires the specified event with the passed parameters (minus the event name).
Parameters:
|
Observable | |
getEl() : Ext.Element Returns this menu's underlying Ext.Element object
Returns this menu's underlying Ext.Element object
Parameters:
|
Menu | |
hasListener( String eventName ) : Boolean Checks to see if this object has any listeners for a specified event
Checks to see if this object has any listeners for a specified event
Parameters:
|
Observable | |
hide( [Boolean deep ] ) : void Hides this menu and optionally all parent menus
Hides this menu and optionally all parent menus
Parameters:
|
Menu | |
insert( Number index , Ext.menu.Item item ) : Ext.menu.Item Inserts an existing object based on Ext.menu.BaseItem to the menu at a specified index
Inserts an existing object based on Ext.menu.BaseItem to the menu at a specified index
Parameters:
|
Menu | |
isVisible() : void Read-only. Returns true if the menu is currently displayed, else false.
Read-only. Returns true if the menu is currently displayed, else false.
Parameters:
|
Menu | |
on( String eventName , Function handler , [Object scope ], [Object options ] ) : void Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
Parameters:
|
Observable | |
purgeListeners() : void Removes all listeners for this object
Removes all listeners for this object
Parameters:
|
Observable | |
relayEvents( Object o , Array events ) : void Relays selected events from the specified Observable as if the events were fired by this.
Relays selected events from the specified Observable as if the events were fired by this.
Parameters:
|
Observable | |
remove( Ext.menu.Item item ) : void Removes an Ext.menu.Item from the menu and destroys the object
Removes an Ext.menu.Item from the menu and destroys the object
Parameters:
|
Menu | |
removeAll() : void Removes and destroys all items in the menu
Removes and destroys all items in the menu
Parameters:
|
Menu | |
removeListener( String eventName , Function handler , [Object scope ] ) : void Removes a listener
Removes a listener
Parameters:
|
Observable | |
resumeEvents() : void Resume firing events. (see suspendEvents)
Resume firing events. (see suspendEvents)
Parameters:
|
Observable | |
show( Mixed element , [String position ], [Ext.menu.Menu parentMenu ] ) : void Displays this menu relative to another element
Displays this menu relative to another element
Parameters:
|
Menu | |
showAt( Array xyPosition , [Ext.menu.Menu parentMenu ] ) : void Displays this menu at a specific xy position
Displays this menu at a specific xy position
Parameters:
|
Menu | |
suspendEvents() : void Suspend the firing of all events. (see resumeEvents)
Suspend the firing of all events. (see resumeEvents)
Parameters:
|
Observable | |
un( String eventName , Function handler , [Object scope ] ) : void Removes a listener (shorthand for removeListener)
Removes a listener (shorthand for removeListener)
Parameters:
|
Observable |
Event | Defined By | |
---|---|---|
beforehide : ( Ext.menu.Menu this ) Fires before this menu is hidden
Fires before this menu is hidden
Listeners will be called with the following arguments:
|
Menu | |
beforeshow : ( Ext.menu.Menu this ) Fires before this menu is displayed
Fires before this menu is displayed
Listeners will be called with the following arguments:
|
Menu | |
click : ( Ext.menu.Menu this , Ext.menu.Item menuItem , Ext.EventObject e ) Fires when this menu is clicked (or when the enter key is pressed while it is active)
Fires when this menu is clicked (or when the enter key is pressed while it is active)
Listeners will be called with the following arguments:
|
Menu | |
hide : ( Ext.menu.Menu this ) Fires after this menu is hidden
Fires after this menu is hidden
Listeners will be called with the following arguments:
|
Menu | |
itemclick : ( Ext.menu.BaseItem baseItem , Ext.EventObject e ) Fires when a menu item contained in this menu is clicked
Fires when a menu item contained in this menu is clicked
Listeners will be called with the following arguments:
|
Menu | |
mouseout : ( Ext.menu.Menu this , Ext.EventObject e , Ext.menu.Item menuItem ) Fires when the mouse exits this menu
Fires when the mouse exits this menu
Listeners will be called with the following arguments:
|
Menu | |
mouseover : ( Ext.menu.Menu this , Ext.EventObject e , Ext.menu.Item menuItem ) Fires when the mouse is hovering over this menu
Fires when the mouse is hovering over this menu
Listeners will be called with the following arguments:
|
Menu | |
select : ( ColorPalette palette , String color )
Listeners will be called with the following arguments:
|
ColorMenu | |
show : ( Ext.menu.Menu this ) Fires after this menu is displayed
Fires after this menu is displayed
Listeners will be called with the following arguments:
|
Menu |