Add info and sample for set_edit_mode_button function
This commit is contained in:
10
samples/edit_menu_buttons.lua
Normal file
10
samples/edit_menu_buttons.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
edit_mode_buttons = { "fa:home", "fa:heart", "fa:gamepad" }
|
||||
|
||||
function on_resume()
|
||||
ui:set_edit_mode_buttons(edit_mode_buttons)
|
||||
ui:show_text("Swipe to ppen edit mode")
|
||||
end
|
||||
|
||||
function on_edit_mode_button_click(idx)
|
||||
ui:show_toast(edit_mode_buttons[idx])
|
||||
end
|
||||
Reference in New Issue
Block a user