WoW API: ToggleSpellBook

Revision as of 14:19, 5 September 2006 by WoWWiki>Mikk ({{framexmlfunc|FrameXML/SpellBookFrame.lua}} __NOTOC__)

WoW API < ToggleSpellBook

"I" iconThis 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.