mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add sub menu support for menu widget
This commit is contained in:
@@ -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