C_TradeSkillUI.GetCategories

From Wowpedia
Jump to: navigation, search

Returns a table of category IDs for the currently opened trade skill.

categoryIDs = C_TradeSkillUI.GetCategories()

Returns

categoryIDs 
number[]

Example

This lists the name of all categories.

for _, categoryID in pairs({C_TradeSkillUI.GetCategories()}) do
	print(categoryID, C_TradeSkillUI.GetCategoryInfo(categoryID).name)
end

Patch changes

See also