CollapseTrainerSkillLine
Jump to navigation
Jump to search
This API only exists in Cata Classic and Classic Era. |
Collapses a header in the trainer window, hiding all spells below it.
CollapseTrainerSkillLine(index)
Arguments
- index
- number - The index of a line in the trainer window (if the supplied index is not a header, an error is produced).
- Index 0 ("All") will collapse all headers.
- Note that indices are affected by the trainer filter, see GetTrainerServiceTypeFilter() and SetTrainerServiceTypeFilter()
Example
Collapses all trainer headers. This can also be done by using index 0 instead.
for i = 1, GetNumTrainerServices() do local category = select(3, GetTrainerServiceInfo(i)) if category == "header" then CollapseTrainerSkillLine(i) end end
Patch changes
Patch 4.0.1 (2010-10-12): Removed.