mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
16 lines
251 B
Lua
16 lines
251 B
Lua
---@class widget.TEMPLATE: druid.widget
|
|
local M = {}
|
|
|
|
|
|
function M:init()
|
|
self.root = self:get_node("root")
|
|
self.button = self.druid:new_button("button", self.on_button, self)
|
|
end
|
|
|
|
|
|
function M:on_button()
|
|
print("Root node", self.root)
|
|
end
|
|
|
|
|
|
return M |