Add info and sample for set_edit_mode_button function

This commit is contained in:
Evgeny
2025-01-08 14:13:29 +08:00
parent d2651f22cb
commit 0922b1f2b7
2 changed files with 16 additions and 1 deletions

View 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