Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API CollapseTrainerSkillLine

Last wiki revision 2022-08-01

Collapses a header in the trainer window, hiding all spells below it. CollapseTrainerSkillLine(index)

  • index: - 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 and

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

Source

https://warcraft.wiki.gg/wiki/API_CollapseTrainerSkillLine · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.