Fandom

WoWWiki

API ToggleDropDownMenu

104,632pages on
this wiki
Add New Page
Talk0 Share

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.

WoW API < ToggleDropDownMenu
Icon-information-22x22This function is implemented by FrameXML in [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/UIDropDownMenu.lua FrameXML/UIDropDownMenu.lua].


ToggleDropDownMenu(level, value, dropDownFrame, anchorName, xOffset, yOffset)

Toggles a dropdown menu.


Parameters Edit

Arguments Edit

level
Number - Nesting level of this dropdown.
value 
Object - Value of the dropdown item (if level > 1).
dropDownFrame 
Object - The frame to toggle (not its name!). This object should be derived from UIDropDownMenuTemplate.
anchorName 
String - Sets the relativeTo member of this frame.
xOffset 
Number - Sets the x offset.
yOffset 
Number - Sets the y offset.

Returns Edit

nil

Example Edit

ToggleDropDownMenu(1, nil, PlayerFrameDropDown, "PlayerFrame", 106, 27)

Also on Fandom

Random Wiki