Update example app

This commit is contained in:
Insality
2024-10-19 10:57:55 +03:00
parent c787ed860e
commit ad339508cf
25 changed files with 903 additions and 1388 deletions

View File

@@ -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