Wikia

WoWWiki

API ToggleBag

Talk0
98,585pages on
this wiki
Revision as of 00:41, July 15, 2008 by Charibot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Icon-information-22x22This function is implemented by FrameXML 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.
Advertisement | Your ad here

Photos

Add a Photo
62,230photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki