getMenuEntries
getMenuEntries: (MenuOpened) -> {MenuEntry}The menu's entries, bottom first: the last is shown at the top.
| Method | Returns | Description |
|---|---|---|
getMenuEntries() | {MenuEntry} | The menu's entries, bottom first: the last is shown at the top. |
setMenuEntries({MenuEntry}) | () | Replace the event's array (what later subscribers' getMenuEntries() read). |
getFirstEntry() | MenuEntry? | The entry shown at the top (the array's last), or nil for an empty menu. |
| Field | Type | Description |
|---|---|---|
__eventClass | string | "MenuOpened": the class's name, which host APIs that take the class itself read. |
getMenuEntriesgetMenuEntries: (MenuOpened) -> {MenuEntry}The menu's entries, bottom first: the last is shown at the top.
setMenuEntriessetMenuEntries: (MenuOpened, {MenuEntry}) -> ()Replace the event's array (what later subscribers' getMenuEntries() read).
getFirstEntrygetFirstEntry: (MenuOpened) -> MenuEntry?The entry shown at the top (the array's last), or nil for an empty menu.