add sub menu support for menu widget
This commit is contained in:
1 parent
4d3e6af106
commit
793a431c43
2 files changed
+41
-7
No files matched your search
@@ -7,6 +7,18 @@ ReaderMenu = InputContainer:new{
|
||||
function ReaderMenu:onShowMenu()
|
||||
local item_table = {}
|
||||
|
||||
table.insert(item_table, {
|
||||
text = "Switch zoom mode",
|
||||
sub_item_table = {
|
||||
{
|
||||
text = "Zoom to fit content width",
|
||||
},
|
||||
{
|
||||
text = "Zoom to fit content height",
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
table.insert(item_table, {
|
||||
text = "Return to file browser"
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user