WoW API < ToggleBag
Icon-information-22x22This function is implemented by FrameXML in [DEPRECATED FrameXML/ContainerFrame.lua].


Opens or closes the specified bag.

Parameters Edit

Arguments Edit

Number - the bagId you want to toggle open or close

Returns Edit


Example Edit


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.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.