GridBuilder

If your need to display a grid of a large or infinite number of items (a list of items fetched from API, for instance) then you should use GridBuilder.

The builder function that you provide is called only for those items that are actually visible so your game performance will be improved.

Example

...
local Items = {"First item", "Second item", "Third item"}
...
e.GridBuilder(#Items, function(index)
	return e.TextLabel(Items[index])
end)

Last updated