mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-18 18:06:44 +00:00
16 lines
227 B
Lua
16 lines
227 B
Lua
--[[--
|
|
A menu bar.
|
|
|
|
@widget menu
|
|
--]]--
|
|
|
|
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
|