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

Attributes

  • defaultCaption {String} Default caption to be shown when no option is selected.
  • value {} Get current select 's value.

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.

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

  • defaultCaption {String} Default caption to be shown when no option is selected.
  • value Get current select 's value.

Methods Detail

  • bindMenu () view source
    Bind menu to current Select. When menu shows, set highlightedItem to current selectedItem.
  • handleMenuClick (e) view source
    Handle 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
  • removeItem (c) view source
    Remove specified item from current select. If specified item is selectedItem, then set selectedItem to null.
    Parameters
    •   c
  • removeItems () view source
    Removes all menu items from current select, and set selectedItem to null.
blog comments powered by Disqus
Top