mirror of
https://github.com/Insality/druid.git
synced 2025-09-29 11:02:18 +02:00
Update component docs
This commit is contained in:
@@ -19,8 +19,8 @@ end
|
||||
local function setup_button(self)
|
||||
local b = self.druid:new_button("button_simple", lang.toggle_locale, "button_param")
|
||||
self.druid:new_button("button_template/button", function()
|
||||
print(b:get_enabled())
|
||||
b:set_enabled(not b:get_enabled())
|
||||
print(b:is_enabled())
|
||||
b:set_enabled(not b:is_enabled())
|
||||
end, "button_param")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user