sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • A basic menu class.

      Returns Menu__Class

    Properties

    openingCoords: Blockly.utils.Coordinate

    Coordinates of the mousedown event that caused this menu to open. Used to prevent the consequent mouseup event due to a simple click from activating a menu item immediately.

    Methods

    • Add a new menu item to the bottom of this menu.

      Parameters

      Returns void

    • Dispose of this menu.

      Returns void

    • Focus the menu element.

      Returns void

    • Gets the menu's element.

      Returns Element

      The DOM element.

    • Get the size of a rendered menu.

      Returns Blockly.utils.Size

      Object with width and height properties.

    • Highlights the next highlightable item (or the first if nothing is currently highlighted).

      Returns void

    • Highlights the previous highlightable item (or the last if nothing is currently highlighted).

      Returns void

    • Creates the menu DOM.

      Parameters

      • container: Element

        Element upon which to append this menu.

      Returns void

    • Highlights the given menu item, or clears highlighting if null.

      Parameters

      Returns void

    • Set the menu accessibility role.

      Parameters

      • roleName: Role

        role name.

      Returns void