mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
add menus
This commit is contained in:
9
luigi/widget/menu.lua
Normal file
9
luigi/widget/menu.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
return function (self)
|
||||
|
||||
for index, child in ipairs(self) do
|
||||
child.type = child.type or 'menu.item'
|
||||
child.parentMenu = self
|
||||
child.rootMenu = self
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user