mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
12 lines
217 B
Lua
12 lines
217 B
Lua
---@class examples.basic_button: druid.widget
|
|
---@field button druid.button
|
|
local M = {}
|
|
|
|
function M:init()
|
|
self.button = self.druid:new_button("button/root", function()
|
|
print("Button pressed")
|
|
end)
|
|
end
|
|
|
|
return M
|