MenuButton.Select
Select component which supports single selection from a drop down menu with semantics similar to native HTML select. xclass: 'select'.
parents: MenuButton
defined in: select.js
Class
Attributes
- defaultCaption {String} Default caption to be shown when no option is selected.
- value {} Get current select 's value.
- Fields borrowed from class MenuButton: activeItem, collapsed, matchElWidth, menu
- Fields borrowed from class Button: checkable, checked, collapseSide, describedby, tooltip
- 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
- bindMenu () Bind menu to current Select.
- handleMenuClick (e) Handle click on drop down menu.
- removeItem (c) Remove specified item from current select.
- removeItems () Removes all menu items from current select, and set selectedItem to null.
- Methods borrowed from class MenuButton: addItem, decorateChildrenInternal, getItemAt, handleBlur, handleKeyEventInternal, performActionInternal
- Methods borrowed from class Button: render
- Methods borrowed from class Component.Controller: addChild, bindUI, createDom, getChildAt, getCssClassWithPrefix, handleDblClick, handleFocus, handleKeydown, handleMouseDown, handleMouseEnter, handleMouseLeave, handleMouseUp, initializer, removeChild, removeChildren, renderUI
- Methods borrowed from class Component.UIBase: create, destroy, 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
Class Detail
-
MenuButton.Select ()Select component which supports single selection from a drop down menu with semantics similar to native HTML select. xclass: 'select'.
Attributes Detail
Methods Detail
-
bindMenu () view sourceBind menu to current Select. When menu shows, set highlightedItem to current selectedItem.
-
handleMenuClick (e) view sourceHandle click on drop down menu. Set selected menu item as current selectedItem and hide drop down menu. Protected, should only be overridden by subclasses.
- Parameters
-
- e {Event.Object}
-
removeItem (c) view sourceRemove specified item from current select. If specified item is selectedItem, then set selectedItem to null.
- Parameters
-
- c
-
removeItems () view sourceRemoves all menu items from current select, and set selectedItem to null.
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