Add dynamic_grid and lang_text to the extended components

This commit is contained in:
Insality 2020-09-28 21:58:52 +03:00
parent 59aed96d33
commit e97b0d22c8
3 changed files with 30 additions and 28 deletions

View File

@ -30,16 +30,16 @@ local blocker = require("druid.base.blocker")
local button = require("druid.base.button") local button = require("druid.base.button")
local drag = require("druid.base.drag") local drag = require("druid.base.drag")
local hover = require("druid.base.hover") local hover = require("druid.base.hover")
local lang_text = require("druid.base.lang_text")
local static_grid = require("druid.base.static_grid")
local dynamic_grid = require("druid.base.dynamic_grid")
local scroll = require("druid.base.scroll") local scroll = require("druid.base.scroll")
local static_grid = require("druid.base.static_grid")
local swipe = require("druid.base.swipe") local swipe = require("druid.base.swipe")
local text = require("druid.base.text") local text = require("druid.base.text")
local checkbox = require("druid.extended.checkbox") local checkbox = require("druid.extended.checkbox")
local checkbox_group = require("druid.extended.checkbox_group") local checkbox_group = require("druid.extended.checkbox_group")
local dynamic_grid = require("druid.base.dynamic_grid")
local input = require("druid.extended.input") local input = require("druid.extended.input")
local lang_text = require("druid.base.lang_text")
local progress = require("druid.extended.progress") local progress = require("druid.extended.progress")
local radio_group = require("druid.extended.radio_group") local radio_group = require("druid.extended.radio_group")
local slider = require("druid.extended.slider") local slider = require("druid.extended.slider")
@ -383,15 +383,6 @@ function Druid.new_text(self, ...)
end end
--- Create lang_text basic component
-- @function druid:new_lang_text
-- @tparam args ... lang_text init args
-- @treturn Component lang_text component
function Druid.new_lang_text(self, ...)
return Druid.create(self, lang_text, ...)
end
--- Create grid basic component --- Create grid basic component
-- @function druid:new_grid -- @function druid:new_grid
-- @tparam args ... grid init args -- @tparam args ... grid init args
@ -412,15 +403,6 @@ function Druid.new_static_grid(self, ...)
end end
--- Create dynamic grid basic component
-- @function druid:new_dynamic_grid
-- @tparam args ... grid init args
-- @treturn Component grid component
function Druid.new_dynamic_grid(self, ...)
return Druid.create(self, dynamic_grid, ...)
end
--- Create scroll basic component --- Create scroll basic component
-- @function druid:new_scroll -- @function druid:new_scroll
-- @tparam args ... scroll init args -- @tparam args ... scroll init args
@ -448,7 +430,27 @@ function Druid.new_drag(self, ...)
end end
--- Create slider basic component --- Create dynamic grid component
-- @function druid:new_dynamic_grid
-- @tparam args ... grid init args
-- @treturn Component grid component
function Druid.new_dynamic_grid(self, ...)
-- return helper.extended_component("dynamic_grid")
return Druid.create(self, dynamic_grid, ...)
end
--- Create lang_text component
-- @function druid:new_lang_text
-- @tparam args ... lang_text init args
-- @treturn Component lang_text component
function Druid.new_lang_text(self, ...)
-- return helper.extended_component("lang_text")
return Druid.create(self, lang_text, ...)
end
--- Create slider component
-- @function druid:new_slider -- @function druid:new_slider
-- @tparam args ... slider init args -- @tparam args ... slider init args
-- @treturn Component slider component -- @treturn Component slider component
@ -458,7 +460,7 @@ function Druid.new_slider(self, ...)
end end
--- Create checkbox basic component --- Create checkbox component
-- @function druid:new_checkbox -- @function druid:new_checkbox
-- @tparam args ... checkbox init args -- @tparam args ... checkbox init args
-- @treturn Component checkbox component -- @treturn Component checkbox component
@ -468,7 +470,7 @@ function Druid.new_checkbox(self, ...)
end end
--- Create input basic component --- Create input component
-- @function druid:new_input -- @function druid:new_input
-- @tparam args ... input init args -- @tparam args ... input init args
-- @treturn Component input component -- @treturn Component input component
@ -478,7 +480,7 @@ function Druid.new_input(self, ...)
end end
--- Create checkbox_group basic component --- Create checkbox_group component
-- @function druid:new_checkbox_group -- @function druid:new_checkbox_group
-- @tparam args ... checkbox_group init args -- @tparam args ... checkbox_group init args
-- @treturn Component checkbox_group component -- @treturn Component checkbox_group component
@ -488,7 +490,7 @@ function Druid.new_checkbox_group(self, ...)
end end
--- Create radio_group basic component --- Create radio_group component
-- @function druid:new_radio_group -- @function druid:new_radio_group
-- @tparam args ... radio_group init args -- @tparam args ... radio_group init args
-- @treturn Component radio_group component -- @treturn Component radio_group component
@ -498,7 +500,7 @@ function Druid.new_radio_group(self, ...)
end end
--- Create timer basic component --- Create timer component
-- @function druid:new_timer -- @function druid:new_timer
-- @tparam args ... timer init args -- @tparam args ... timer init args
-- @treturn Component timer component -- @treturn Component timer component
@ -508,7 +510,7 @@ function Druid.new_timer(self, ...)
end end
--- Create progress basic component --- Create progress component
-- @function druid:new_progress -- @function druid:new_progress
-- @tparam args ... progress init args -- @tparam args ... progress init args
-- @treturn Component progress component -- @treturn Component progress component