Methods
(static) closeMenu()
Closes a menu.
(static) createMenu(name_prefix, x, y, options)
Creates and displays a menu.
If you want to refer to the menu block in CSS, use .<name_prefix>_menu.
Parameters:
| Name | Type | Description |
|---|---|---|
name_prefix |
String | Prefix to use for the menu block class in CSS. |
x |
int | x-part of the upper-left corner position of a menu. |
y |
int | y-part of the upper-left corner position of a menu. |
options |
Array | Array of menu items of type
|
(static) createMenuWithCustomBlocks(name_prefix, x, y, blocks)
Creates and displays a menu with custom-made blocks.
If you want to refer to the menu block in CSS, use .<name_prefix>_menu.
Parameters:
| Name | Type | Description |
|---|---|---|
name_prefix |
String | Prefix to use for the menu block class in CSS. |
x |
int | x-part of the upper-left corner position of a menu. |
y |
int | y-part of the upper-left corner position of a menu. |
blocks |
Array | Array of custom menu items of type
|