add sub menu support for menu widget

This commit is contained in:
Qingping Hou
2012-06-11 13:46:19 +08:00
parent 4d3e6af106
commit 793a431c43
2 changed files with 41 additions and 7 deletions

View File

@@ -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"
})