mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Update docs, annotations and style for checkbox
This commit is contained in:
@@ -44,10 +44,11 @@ end
|
||||
--- Set checkbox group state
|
||||
-- @tparam CheckboxGroup self
|
||||
-- @tparam bool[] indexes Array of checkbox state
|
||||
function CheckboxGroup.set_state(self, indexes)
|
||||
-- @tparam boolean is_instant If instant state change
|
||||
function CheckboxGroup.set_state(self, indexes, is_instant)
|
||||
for i = 1, #indexes do
|
||||
if self.checkboxes[i] then
|
||||
self.checkboxes[i]:set_state(indexes[i], true)
|
||||
self.checkboxes[i]:set_state(indexes[i], true, is_instant)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user