Skip to main content

Home > blockly > Menu

A basic menu class.

Signature:

export declare class Menu 

Constructors

ConstructorModifiersDescription
(constructor)()Constructs a new Menu instance.

Properties

PropertyModifiersTypeDescription
openingCoordsCoordinate | nullCoordinates of the pointerdown event that caused this menu to open. Used to prevent the consequent pointerup event due to a simple click from activating a menu item immediately.

Methods

MethodModifiersDescription
dispose()Dispose of this menu.
render(container)Creates the menu DOM.