Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
({{framexmlfunc|FrameXML/ContainerFrame.lua}} __NOTOC__)
m (catfix, Replaced: {{framexml → <br>{{framexml)
Line 1: Line 1:
{{framexmlfunc|FrameXML/ContainerFrame.lua}} __NOTOC__
+
<br>{{framexmlfunc|FrameXML/ContainerFrame.lua}} __NOTOC__
   
   

Revision as of 00:41, 15 July 2008


This function is implemented in FrameXML/ContainerFrame.lua.


ToggleBag(bagNum);

Opens or closes the specified bag.


Parameters

Arguments

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

Returns

nil

Example

ToggleBag(2);


Details

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.