Add dynamic grid component stub

This commit is contained in:
Insality
2020-09-21 01:47:00 +03:00
parent 15a94173d2
commit 6ce14a7a1c
2 changed files with 320 additions and 3 deletions

View File

@@ -9,7 +9,8 @@
-- @see druid.lang_text
-- @see druid.timer
-- @see druid.progress
-- @see druid.grid
-- @see druid.static_grid
-- @see druid.dynamic_grid
-- @see druid.scroll
-- @see druid.slider
-- @see druid.checkbox
@@ -33,6 +34,7 @@ local lang_text = require("druid.base.lang_text")
local timer = require("druid.base.timer")
local progress = require("druid.base.progress")
local static_grid = require("druid.base.static_grid")
local dynamic_grid = require("druid.base.dynamic_grid")
local scroll = require("druid.base.scroll")
local slider = require("druid.base.slider")
local checkbox = require("druid.base.checkbox")
@@ -414,8 +416,8 @@ function Druid.new_grid(self, ...)
end
--- Create staic grid basic component
-- @function druid:new_staic_grid
--- Create static grid basic component
-- @function druid:new_static_grid
-- @tparam args ... grid init args
-- @treturn Component grid component
function Druid.new_static_grid(self, ...)
@@ -423,6 +425,15 @@ function Druid.new_static_grid(self, ...)
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
-- @function druid:new_scroll
-- @tparam args ... scroll init args