Roo.util.Observable Roo.Component Roo.menu.BaseItem Roo.menu.Item Roo.menu.CheckItem
Package: | Roo.menu |
Defined In: | Roo/menu/CheckItem.js. |
Class: | CheckItem |
Extends: | Roo.menu.Item |
Options | Defined By | |
---|---|---|
HTML : String
to render in menu
The text to show on the menu item (HTML version).
to render in menu
The text to show on the menu item (HTML version). |
Roo.menu.Item | |
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 | |
activeClass : String
The CSS class to use when the item becomes activated (defaults to "x-menu-item-active")
The CSS class to use when the item becomes activated (defaults to "x-menu-item-active")
|
Roo.menu.BaseItem | |
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 | |
canActivate : Boolean
True if this item can be visually activated (defaults to true)
True if this item can be visually activated (defaults to true)
|
Roo.menu.Item | |
checked : Boolean
True to initialize this checkbox as checked (defaults to false).
True to initialize this checkbox as checked (defaults to false). Note that
if this checkbox is part of a radio group (group = true) only the last item in the group that is initialized with checked = true will be rendered as checked. |
Roo.menu.CheckItem | |
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 | |
group : String
All check items with the same group name will automatically be grouped into a single-select
radio button group (defaults to '')
All check items with the same group name will automatically be grouped into a single-select
radio button group (defaults to '') |
Roo.menu.CheckItem | |
groupClass : String
The default CSS class to use for radio group check items (defaults to "x-menu-group-item")
The default CSS class to use for radio group check items (defaults to "x-menu-group-item")
|
Roo.menu.CheckItem | |
handler : Function
A function that will handle the click event of this menu item (defaults to undefined)
A function that will handle the click event of this menu item (defaults to undefined)
|
Roo.menu.BaseItem | |
hidden : Boolean
True to prevent creation of this menu item (defaults to false)
True to prevent creation of this menu item (defaults to false)
|
Roo.menu.BaseItem | |
hideDelay : Number
Length of time in milliseconds to wait before hiding after a click (defaults to 100)
Length of time in milliseconds to wait before hiding after a click (defaults to 100)
|
Roo.menu.BaseItem | |
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 | |
hideOnClick : Boolean
True to hide the containing menu after this item is clicked (defaults to true)
True to hide the containing menu after this item is clicked (defaults to true)
|
Roo.menu.BaseItem | |
icon : String
The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)
The path to an icon to display in this menu item (defaults to Roo.BLANK_IMAGE_URL)
|
Roo.menu.Item | |
itemCls : String
The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item")
The default CSS class to use for check items (defaults to "x-menu-item x-menu-check-item")
|
Roo.menu.CheckItem | |
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 | |
showDelay : Number
Length of time in milliseconds to wait before showing this item (defaults to 200)
Length of time in milliseconds to wait before showing this item (defaults to 200)
|
Roo.menu.Item | |
text : String
The text to show on the menu item.
The text to show on the menu item.
|
Roo.menu.Item |
Method | Defined By | |
---|---|---|
new Roo.menu.CheckItem
(Object config)
Create a new Roo.menu.CheckItem
Create a new Roo.menu.CheckItem
|
||
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 | |
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 | |
Roo.util.Observable | ||
hide
()
:
Roo.Component
Hide this component.
Hide this component.
|
Roo.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 | |
Roo.menu.CheckItem | ||
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
Roo.menu.Item | ||
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 | |
show
()
:
Roo.Component
Show this component.
Show this component.
|
Roo.Component | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
activate (Roo.menu.BaseItem this)
Fires when this item is activated
Fires when this item is activated
|
Roo.menu.BaseItem | |
beforecheckchange (Roo.menu.CheckItem this, Boolean checked)
Fires before the checked value is set, providing an opportunity to cancel if needed
Fires before the checked value is set, providing an opportunity to cancel if needed
|
Roo.menu.CheckItem | |
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.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
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.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
checkchange (Roo.menu.CheckItem this, Boolean checked)
Fires after the checked value has been set
Fires after the checked value has been set
|
Roo.menu.CheckItem | |
click (Roo.menu.BaseItem this, Roo.EventObject e)
Fires when this item is clicked
Fires when this item is clicked
|
Roo.menu.BaseItem | |
deactivate (Roo.menu.BaseItem this)
Fires when this item is deactivated
Fires when this item is deactivated
|
Roo.menu.BaseItem | |
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.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component |