mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-11 08:48:23 +00:00
minor
This commit is contained in:
@@ -113,6 +113,12 @@ Widget.typeDecorators = {
|
|||||||
text = require(ROOT .. 'widget.text'),
|
text = require(ROOT .. 'widget.text'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--[[--
|
||||||
|
Static Functions
|
||||||
|
|
||||||
|
@section static
|
||||||
|
--]]--
|
||||||
|
|
||||||
--[[--
|
--[[--
|
||||||
Register a custom widget type.
|
Register a custom widget type.
|
||||||
|
|
||||||
@@ -128,6 +134,10 @@ function Widget.register (name, decorator)
|
|||||||
Widget.typeDecorators[name] = decorator
|
Widget.typeDecorators[name] = decorator
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[--
|
||||||
|
@section end
|
||||||
|
--]]--
|
||||||
|
|
||||||
-- look for properties in attributes, Widget, style, and theme
|
-- look for properties in attributes, Widget, style, and theme
|
||||||
local function metaIndex (self, property)
|
local function metaIndex (self, property)
|
||||||
-- look in widget's own attributes
|
-- look in widget's own attributes
|
||||||
|
|||||||
Reference in New Issue
Block a user