mirror of
https://github.com/Insality/druid.git
synced 2025-09-28 10:32:20 +02:00
Update example app
This commit is contained in:
@@ -25,7 +25,7 @@ function M:init(template, nodes)
|
||||
|
||||
self.text_name = self.druid:new(lang_text, "text_name") --[[@as druid.lang_text]]
|
||||
|
||||
self.button = self.druid:new_button("button")
|
||||
self.button = self.druid:new_button("button", self.on_click)
|
||||
end
|
||||
|
||||
|
||||
@@ -51,4 +51,9 @@ function M:get_value()
|
||||
end
|
||||
|
||||
|
||||
function M:on_click()
|
||||
self:set_value(not self:get_value())
|
||||
end
|
||||
|
||||
|
||||
return M
|
||||
|
Reference in New Issue
Block a user