Roo.util.Observable Roo.Component Roo.bootstrap.Component Roo.bootstrap.Menu
Package: | Roo.bootstrap |
Defined In: | Roo/bootstrap/Menu.js. |
Class: | Menu |
Extends: | Roo.bootstrap.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
can_build_overlaid : Boolean
True if element can be rebuild from a HTML page
True if element can be rebuild from a HTML page
|
Roo.bootstrap.Component | |
cls : String
css class
css class
|
Roo.bootstrap.Component | |
container_method : string
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
method to fetch parents container element (used by NavHeaderbar - getHeaderChildContainer)
|
Roo.bootstrap.Component | |
dataId : string
cutomer id
cutomer id
|
Roo.bootstrap.Component | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
hidden : bool
if the menu should be hidden when rendered.
if the menu should be hidden when rendered.
|
Roo.bootstrap.Menu | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
isLink : bool
the menu has link disable auto expand and collaspe (default false)
the menu has link disable auto expand and collaspe (default false)
Possible Values: true, false |
Roo.bootstrap.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 | |
name : string
Specifies name attribute
Specifies name attribute
|
Roo.bootstrap.Component | |
registerMenu : Boolean
True (default) - means that clicking on screen etc.
True (default) - means that clicking on screen etc. hides it.
|
Roo.bootstrap.Menu | |
stopEvent : bool
Stop event after trigger press (default true)
Stop event after trigger press (default true)
Possible Values: true, false |
Roo.bootstrap.Menu | |
style : String
any extra css
any extra css
|
Roo.bootstrap.Component | |
tooltip : string
Text for the tooltip
Text for the tooltip
|
Roo.bootstrap.Component | |
type : String
type of menu
type of menu
Possible Values: dropdown, treeview, submenu |
Roo.bootstrap.Menu | |
visibilityEl : string|object
What element to use for visibility (see getVisibilityEl())
What element to use for visibility (see getVisibilityEl())
Possible Values: el, parent |
Roo.bootstrap.Component | |
xattr : Object
extra attributes to add to 'element' (used by builder to store stuff.
extra attributes to add to 'element' (used by builder to store stuff.)
|
Roo.bootstrap.Component |
Method | Defined By | |
---|---|---|
new Roo.bootstrap.Menu
(Object config)
Create a new Roo.bootstrap.Menu
Create a new Roo.bootstrap.Menu
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
destroy
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
:
Roo.Component
Disable this component.
Disable this component.
|
Roo.Component | |
enable
()
:
Roo.Component
Enable this component.
Enable this component.
|
Roo.Component | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
getChildContainer
()
:
Roo.Element
Fetch the element to add children to
Fetch the element to add children to
|
Roo.bootstrap.Component | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
getVisibilityEl
()
Get the element that will be used to show or hide
Get the element that will be used to show or hide
|
Roo.bootstrap.Component | |
Roo.util.Observable | ||
hide
(Boolean deep)
Hides this menu and optionally all parent menus
Hides this menu and optionally all parent menus
|
Roo.bootstrap.Menu | |
initEvents
()
Initialize Events for the element
Initialize Events for the element
|
Roo.bootstrap.Component | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
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 | |
Roo.util.Observable | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
Displays this menu relative to another element
Displays this menu relative to another element
|
Roo.bootstrap.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.bootstrap.Menu | |
tooltipEl
()
:
Roo.Element
Fetch the element to display the tooltip on.
Fetch the element to display the tooltip on.
|
Roo.bootstrap.Component | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.menu.Menu this)
Fires before this menu is hidden
Fires before this menu is hidden
|
Roo.bootstrap.Menu | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.menu.Menu this)
Fires before this menu is displayed
Fires before this menu is displayed
|
Roo.bootstrap.Menu | |
childrenrendered (Roo.bootstrap.Component this)
Fires when the children have been rendered.
Fires when the children have been rendered..
|
Roo.bootstrap.Component | |
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.bootstrap.Menu | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.menu.Menu this)
Fires after this menu is hidden
Fires after this menu is hidden
|
Roo.bootstrap.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.bootstrap.Menu | |
Fires when the mouse exits this menu
Fires when the mouse exits this menu
|
Roo.bootstrap.Menu | |
Fires when the mouse is hovering over this menu
Fires when the mouse is hovering over this menu
|
Roo.bootstrap.Menu | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
show (Roo.menu.Menu this)
Fires after this menu is displayed
Fires after this menu is displayed
|
Roo.bootstrap.Menu |