WoW API < ToggleBag

"I" iconThis function is implemented by FrameXML in [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/ContainerFrame.lua FrameXML/ContainerFrame.lua].


ToggleBag(bagNum);

Opens or closes the specified bag.


Parameters[edit | edit source]

Arguments[edit | edit source]

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

Returns[edit | edit source]

nil

Example[edit | edit source]

ToggleBag(2);


Details[edit | edit source]

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.
Community content is available under CC-BY-SA unless otherwise noted.