Menu.Item
A menu item component which menu is consisted of. xclass: 'menuitem'.
parents: Component.Controller
defined in: menuitem.js
Class
- Menu.Item ()
Attributes
- checkable {Boolean} Whether the menu item is checkable or not.
- checked {Boolean} Whether the menu item is checked.
- selectable {Boolean} Whether the menu item is selectable or not.
- selected {Boolean} Whether the menu item is selected.
- value {} The value associated with the menu item.
- Fields borrowed from class Component.Controller: active, activeable, children, disabled, focusable, focused, handleMouseEvents, highlighted, parent, prefixCls, view
- Fields borrowed from class Component.UIBase: created, listeners, plugins, rendered, xclass
- Fields borrowed from class Component.UIBase.Box: content, el, elAttrs, elBefore, elCls, elStyle, height, srcNode, visible, visibleMode, width
Methods
- containsElement (element) Check whether this menu item contains specified element.
- handleMouseEnter (e) Handle mouseenter event.
- handleMouseLeave (e) Handle mouseleave event.
- performActionInternal () Perform default action when click on enter on this menuitem.
- Methods borrowed from class Component.Controller: addChild, bindUI, createDom, getChildAt, getCssClassWithPrefix, handleBlur, handleDblClick, handleFocus, handleKeydown, handleKeyEventInternal, handleMouseDown, handleMouseUp, initializer, removeChild, removeChildren, renderUI
- Methods borrowed from class Component.UIBase: create, destroy, render, syncUI
- Methods borrowed from class Base: set
- Methods borrowed from class Attribute: addAttr, addAttrs, get, getAttrs, getAttrVals, hasAttr, removeAttr, reset
- Methods borrowed from class Component.UIBase.Box: hide, show
Attributes Detail
-
checkable {Boolean} Whether the menu item is checkable or not. Set to true for checkbox option.
-
checked {Boolean} Whether the menu item is checked.
-
selectable {Boolean} Whether the menu item is selectable or not. Set to true for option.
-
selected {Boolean} Whether the menu item is selected.
-
value The value associated with the menu item.
Methods Detail
-
containsElement (element) view sourceCheck whether this menu item contains specified element.
- Parameters
-
- element {NodeList} Element to be tested.
-
handleMouseEnter (e) view sourceHandle mouseenter event. Make parent menu to highlight itself. Protected, should only be overridden by subclasses.
- Parameters
-
- e {Event.Object} Mouseenter event object.
-
handleMouseLeave (e) view sourceHandle mouseleave event. Make parent menu to unhighlight itself. Protected, should only be overridden by subclasses.
- Parameters
-
- e {Event.Object} Mouseleave event object.
-
performActionInternal () view sourcePerform default action when click on enter on this menuitem. If selectable, then make it selected. If checkable, then toggle it. Finally fire click on its parent menu.
Classes
- Anim
- Anim.Easing
- Attribute
- Base
- Button
- ComboBox
- ComboBox.LocalDataSource
- ComboBox.RemoteDataSource
- Component
- Component.Container
- Component.Controller
- Component.Manager
- Component.Render
- Component.UIBase
- Component.UIBase.Align
- Component.UIBase.Box
- Component.UIBase.Close
- Component.UIBase.Constrain
- Component.UIBase.ContentBox
- Component.UIBase.Drag
- Component.UIBase.Loading
- Component.UIBase.Mask
- Component.UIBase.Position
- Component.UIBase.Resize
- Component.UIBase.StdMod
- Cookie
- DataLazyload
- DD
- DD.Constrain
- DD.DDM
- DD.Draggable
- DD.DraggableDelegate
- DD.Droppable
- DD.DroppableDelegate
- DD.Proxy
- DD.Scroll
- DOM
- Editor
- Editor.Range
- Editor.Utils
- Editor.Walker
- Event
- Event.Object
- Event.Target
- IO
- IO.XhrObject
- KISSY
- KISSY.Defer
- KISSY.Loader
- KISSY.Loader.Module
- KISSY.Loader.Package
- KISSY.Promise
- Menu
- Menu.FilterMenu
- Menu.Item
- Menu.PopupMenu
- Menu.Separator
- MenuButton
- MenuButton.Option
- MenuButton.Select
- MVC
- MVC.Collection
- MVC.Model
- MVC.Router
- MVC.View
- NodeList
- Overlay
- Overlay.Dialog
- Overlay.Popup
- Resizable
- Tree
- Tree.CheckNode
- Tree.CheckTree
- Tree.Node
- Waterfall
- Waterfall.Loader