WoW API: ToggleSpellBook
This function is implemented in Lua here FrameXML/SpellBookFrame.lua.
ToggleSpellBook(bookType);
Shows/Hides the Spellbook.
Parameters
Arguments
- bookType
- string containing which spellbook to open. Valid choices are "spell" and "pet"
Returns
- nil
Example
ToggleSpellBook("spell");
Details
- Shows the Spellbook. Equivalent to pressing 'P'. Note that if you do not have any pet spells, passing in "pet" will do nothing.