Update grid usage at grid example page

This commit is contained in:
Insality
2020-09-21 00:00:00 +03:00
parent 0dc9f32b7a
commit cf87c89cff
4 changed files with 28 additions and 7 deletions

View File

@@ -46,7 +46,7 @@ function M.init(self, parent, element, in_row)
self.node_size = gui.get_size(node)
self.node_pivot = const.PIVOTS[gui.get_pivot(node)]
self.border = vmath.vector4(0)
self.border = vmath.vector4(0) -- Current grid content size
self.border_offset = vmath.vector3(0)
self.on_add_item = Event()

View File

@@ -431,6 +431,15 @@ function Druid.new_grid(self, ...)
end
--- Create staic grid basic component
-- @function druid:new_staic_grid
-- @tparam args ... grid init args
-- @treturn Component grid component
function Druid.new_static_grid(self, ...)
return Druid.create(self, static_grid, ...)
end
--- Create scroll basic component
-- @function druid:new_scroll
-- @tparam args ... scroll init args