mirror of
https://github.com/Insality/druid.git
synced 2025-09-29 02:52:19 +02:00
Start update examples to move control things to example itself
This commit is contained in:
@@ -39,4 +39,16 @@ function M:init()
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
---@param output_log output_list
|
||||
function M:on_example_created(output_log)
|
||||
self.button.on_click:subscribe(function()
|
||||
output_log:add_log_text("Clicked")
|
||||
end)
|
||||
self.button.on_long_click:subscribe(function()
|
||||
output_log:add_log_text("On long click")
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user