WoW:API ToggleBag: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API ToggleBag to API ToggleBag without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<br>{{framexmlfunc|FrameXML/ContainerFrame.lua}} __NOTOC__ | |||
ToggleBag(bagNum); | ToggleBag(bagNum); | ||
Opens or closes the specified bag. | |||
== Parameters == | |||
=== Arguments === | |||
:;bagNum : | :;bagNum : Number - the [[bagId]] you want to toggle open or close | ||
=== Returns === | |||
:;nil | :;nil | ||
== Example == | |||
ToggleBag(2); | 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. | : 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. | ||
Latest revision as of 04:47, 15 August 2023
- This function is implemented in Lua here 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.