This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function CreateDemoModel(numItems) | |
local listModel = {}; | |
for index = 1, numItems do | |
table.insert(listModel, { | |
text = string.format("List Item %1$d", index), | |
icon = string.format([[Interface\Icons\INV_Sword_%1$d]], 30 + (index % 30)), | |
}); | |
end |