Wikia

WoWWiki

Watchlist Recent changes

API ToggleBag


Main Menue



"I" iconThis function is implemented by FrameXML in FrameXML/ContainerFrame.lua.


ToggleBag(bagNum);

Opens or closes the specified bag.


Parameters Edit

Arguments Edit

bagNum 
Number - the bagId you want to toggle open or close

Returns Edit

nil

Example Edit

ToggleBag(2);


Details Edit

If toggling the backpack with the keyboard, this function is called when opening but NOT when closing. Closing appears to be done by ToggleBackpack(). However, if the mouse is used to close the Backpack then this function does respond.

Pages on WoWWiki

94,158pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,613photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki