Menu

KISSY Menu. xclass: 'menu'.

parents: Component.Container

defined in: base.js

Class

Attributes


Methods

  • containsElement (element) Whether this menu contains specified html element.
  • handleKeyEventInternal (e) Attempts to handle a keyboard event; returns true if the event was handled, false otherwise.

Class Detail

  • Menu ()
    KISSY Menu. xclass: 'menu'.

Attributes Detail

  • activeItem {Menu.Item} Current active menu item. Maybe a descendant but not a child of current menu.
  • highlightedItem {Menu.Item} Current highlighted child menu item.

Methods Detail

  • containsElement (element) view source
    Whether this menu contains specified html element.
    Parameters
    •   element {NodeList} Html Element to be tested.
    Returns
    • {Boolean}
  • handleKeyEventInternal (e) view source
    Attempts to handle a keyboard event; returns true if the event was handled, false otherwise. If the container is enabled, and a child is highlighted, calls the child controller's {@code handleKeydown} method to give the control a chance to handle the event first. Protected, should only be overridden by subclasses.
    Parameters
    Returns
    • {Boolean} Whether the event was handled by the container (or one of its children).
blog comments powered by Disqus
Top