Flipper/Applications/Custom (UL, RM)/RogueMaster/Scripts/submenu.js

12 lines
262 B
JavaScript
Raw Normal View History

2024-03-25 01:35:38 +00:00
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);