Roo.util.Observable Roo.menu.Menu Roo.menu.ColorMenu
Package: | Roo.menu |
Defined In: | Roo/menu/ColorMenu.js. |
Class: | ColorMenu |
Extends: | Roo.menu.Menu |
Options | Defined By | |
---|---|---|
allowOtherMenus : Boolean
True to allow multiple menus to be displayed at the same time (defaults to false)
True to allow multiple menus to be displayed at the same time (defaults to false)
|
Roo.menu.Menu | |
defaultAlign : String
The default {link Roo.ElementalignTo) anchor position value for this menu
relative to its element of origin (defaults to "tl-bl?")
The default {link Roo.ElementalignTo) anchor position value for this menu
relative to its element of origin (defaults to "tl-bl?") |
Roo.menu.Menu | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
minWidth : Number
The minimum width of the menu in pixels (defaults to 120)
The minimum width of the menu in pixels (defaults to 120)
|
Roo.menu.Menu | |
registerMenu : Boolean
True (default) - means that clicking on screen etc.
True (default) - means that clicking on screen etc. hides it.
|
Roo.menu.Menu | |
shadow : Boolean/String
True or "sides" for the default effect, "frame" for 4-way shadow, and "drop"
for bottom-right shadow (defaults to "sides")
True or "sides" for the default effect, "frame" for 4-way shadow, and "drop"
for bottom-right shadow (defaults to "sides") |
Roo.menu.Menu | |
subMenuAlign : String
The {link Roo.ElementalignTo} anchor position value to use for submenus of
this menu (defaults to "tl-tr?")
The {link Roo.ElementalignTo} anchor position value to use for submenus of
this menu (defaults to "tl-tr?") |
Roo.menu.Menu |
Method | Defined By | |
---|---|---|
new Roo.menu.ColorMenu
(Object config)
Create a new Roo.menu.ColorMenu
Create a new Roo.menu.ColorMenu
|
||
add
(Mixed args)
:
Roo.menu.Item
Addds one or more items of any type supported by the Menu class, or that can be converted into menu items.
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:
Usage:
|
Roo.menu.Menu | |
addElement
(String/HTMLElement/Roo.Element el)
:
Roo.menu.Item
Adds an {link Roo.Element} object to the menu
Adds an {link Roo.Element} object to the menu
|
Roo.menu.Menu | |
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
addItem
(Roo.menu.Item item)
:
Roo.menu.Item
Adds an existing object based on {link Roo.menu.Item} to the menu
Adds an existing object based on {link Roo.menu.Item} to the menu
|
Roo.menu.Menu | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
addMenuItem
(Object config)
:
Roo.menu.Item
Creates a new {link Roo.menu.Item} based an the supplied config object and adds it to the menu
Creates a new {link Roo.menu.Item} based an the supplied config object and adds it to the menu
|
Roo.menu.Menu | |
addSeparator
()
:
Roo.menu.Item
Adds a separator bar to the menu
Adds a separator bar to the menu
|
Roo.menu.Menu | |
addText
(String text)
:
Roo.menu.Item
Creates a new {link Roo.menu.TextItem} with the supplied text and adds it to the menu
Creates a new {link Roo.menu.TextItem} with the supplied text and adds it to the menu
|
Roo.menu.Menu | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getEl
()
:
Roo.Element
Returns this menu's underlying {link Roo.Element} object
Returns this menu's underlying {link Roo.Element} object
|
Roo.menu.Menu | |
Roo.util.Observable | ||
hide
(Boolean deep)
Hides this menu and optionally all parent menus
Hides this menu and optionally all parent menus
|
Roo.menu.Menu | |
Inserts an existing object based on {link Roo.menu.Item} to the menu at a specified index
Inserts an existing object based on {link Roo.menu.Item} to the menu at a specified index
|
Roo.menu.Menu | |
isVisible
()
Read-only.
Read-only. Returns true if the menu is currently displayed, else false.
|
Roo.menu.Menu | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
remove
(Roo.menu.Item item)
Removes an {link Roo.menu.Item} from the menu and destroys the object
Removes an {link Roo.menu.Item} from the menu and destroys the object
|
Roo.menu.Menu | |
removeAll
()
Removes and destroys all items in the menu
Removes and destroys all items in the menu
|
Roo.menu.Menu | |
Roo.util.Observable | ||
Displays this menu relative to another element
Displays this menu relative to another element
|
Roo.menu.Menu | |
showAt
(Array xyPosition, Roo.menu.Menu parentMenu)
Displays this menu at a specific xy position
Displays this menu at a specific xy position
|
Roo.menu.Menu | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
beforehide (Roo.menu.Menu this)
Fires before this menu is hidden
Fires before this menu is hidden
|
Roo.menu.Menu | |
beforeshow (Roo.menu.Menu this)
Fires before this menu is displayed
Fires before this menu is displayed
|
Roo.menu.Menu | |
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)
|
Roo.menu.Menu | |
hide (Roo.menu.Menu this)
Fires after this menu is hidden
Fires after this menu is hidden
|
Roo.menu.Menu | |
itemclick (Roo.menu.BaseItem baseItem, Roo.EventObject e)
Fires when a menu item contained in this menu is clicked
Fires when a menu item contained in this menu is clicked
|
Roo.menu.Menu | |
Fires when the mouse exits this menu
Fires when the mouse exits this menu
|
Roo.menu.Menu | |
Fires when the mouse is hovering over this menu
Fires when the mouse is hovering over this menu
|
Roo.menu.Menu | |
select (ColorPalette palette, String color)
|
Roo.menu.ColorMenu | |
show (Roo.menu.Menu this)
Fires after this menu is displayed
Fires after this menu is displayed
|
Roo.menu.Menu |