update checkbox_group component

This commit is contained in:
Insality
2019-09-26 08:45:58 +03:00
parent 39b5f1c555
commit ae9c580c7a
2 changed files with 13 additions and 11 deletions

View File

@@ -77,13 +77,13 @@ local function setup_checkbox(self)
nil, true,
{"radio1/back", "radio2/back", "radio3/back"})
local group2 = self.druid:new_checkbox_group(
local checkbox_group = self.druid:new_checkbox_group(
{"checkbox1/check", "checkbox2/check", "checkbox3/check"},
nil, false,
nil,
{"checkbox1/back", "checkbox2/back", "checkbox3/back"})
group1:set_state({false, false, true})
group2:set_state({true, false, true})
checkbox_group:set_state({true, false, true})
end