LibGridview isnt an addon and is intended to be used as a UI lib for other addons who want to make use of a gridview.




local name, addon = ...;

-- get a ref to the lib
local LibGridview = addon.LibGridview;

-- create the gridview
local gridview = LibGridview:CreateGridview(parent)

-- init the frame pool passing in the frame type and template name
gridview:InitFramePool("FRAME", "GridviewItemTemplate")

-- set the min/max item sizes
gridview:SetMinMaxSize(300, 400)

-- create an item to add
local item = {
    title = "foo",

-- add the item to the gridview