Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API ToggleDropDownMenu
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{framexmlfunc|FrameXML/UIDropDownMenu.lua}} Toggles a dropdown menu. ToggleDropDownMenu(level, value, dropDownFrame, anchorName, xOffset, yOffset) == Parameters == === Arguments === * level (number) - Nesting level of this dropdown. * value (any type) - Custom value for the dropdown item, if 'level' > 1. * dropDownFrame (frame table) - The frame object to toggle, not its string name. This object should be derived from 'UIDropDownMenuTemplate'. * anchorName (string) - Sets the 'relativeTo' member of this frame. Optional * xOffset (number) - Sets the x offset. Optional * yOffset (number) - Sets the y offset. Optional * menuList (table) - Automatically Passed to the to 'menuList' on the [[API UIDropDownMenu_Initialize]] function, and set to 'menuList' member on the dropDownFrame frame table. Optional * button (button table) - Drop down menu anchor point. Default is 'dropDownFrame' or successive parent dropdown menu button. * autoHideDelay (number) - Seconds to delay before hiding an inactive menu. Default is 2. === Returns === : none == Examples == ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "PlayerFrame", 106, 27)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Framexml
(
edit
)
Template:Framexmlfunc
(
edit
)
Template:Icon-information
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowtoolsfilelink
(
edit
)