Update annotations

This commit is contained in:
Insality
2020-04-09 22:07:56 +03:00
parent 9dd3a029ad
commit 48bd0da429
6 changed files with 24 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ end
--- Set checkbox group state
-- @function checkbox_group:set_state
-- @tparam bool[] state Array of checkbox state
-- @tparam bool[] indexes Array of checkbox state
function M.set_state(self, indexes)
for i = 1, #indexes do
if self.checkboxes[i] then

View File

@@ -48,7 +48,7 @@ end
--- Set radio group state
-- @function radio_group:set_state
-- @tparam bool[] state Array of checkbox state
-- @tparam number index Index in radio group
function M.set_state(self, index)
on_checkbox_click(self, index)
end
@@ -56,7 +56,7 @@ end
--- Return radio group state
-- @function radio_group:get_state
-- @treturn bool[] Array if checkboxes state
-- @treturn number Index in radio group
function M.get_state(self)
local result = -1

View File

@@ -11,7 +11,7 @@
-- @table Events
-- @tfield druid_event on_scroll On scroll move callback
-- @tfield druid_event on_scroll_to On scroll_to function callback
-- @tfield druid_event on_point_scroll On scroll_to_index function callbck
-- @tfield druid_event on_point_scroll On scroll_to_index function callback
--- Component fields
-- @table Fields