mirror of
https://github.com/UberGuidoZ/Flipper.git
synced 2024-12-22 14:30:21 +00:00
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);
|