Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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[]

Cataclysm Patch 4.0.1 (2010-10-12): Removed.

See also[]

Advertisement