Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
LibGridview-0.5 release | 3.23 KB | Jan 30, 2023 | 3.4.1 | 16 | ![]() |
LibGridview-0.3 release | 3.24 KB | Jan 30, 2023 | 3.4.1 | 4 | ![]() |
Description
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.
Example:
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
gridview:Insert(item)
Add a comment