mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-25 14:22:27 +03:00
6f560ef210
by Willy-JL , oldip
12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
let submenu = require("submenu");
|
|
|
|
submenu.addItem("Item 1", 0);
|
|
submenu.addItem("Item 2", 1);
|
|
submenu.addItem("Item 3", 2);
|
|
|
|
submenu.setHeader("Select an option:");
|
|
|
|
let result = submenu.show();
|
|
// Returns undefined when pressing back
|
|
print("Result:", result);
|