Wowpedia

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

READ MORE

Wowpedia
Register
Advertisement
This function is implemented in FrameXML/UIDropDownMenu.lua.

Toggles a dropdown menu.

ToggleDropDownMenu(level, value, dropDownFrame, anchorName, xOffset, yOffset, menuList, button, autoHideDelay)

Arguments[]

level
Number - Nesting level of this dropdown.
value
Any - Value of the dropdown item (if level > 1).
dropDownFrame
Widget - 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.
menuList
Internal - EasyMenu wrapper argument, passed as the third argument to the initialization function.
button
Internal - Dropdown menu "open" button.
autoHideDelay
Number - Delay in seconds before inactive menu hides. Default is 2.

Example[]

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

See also[]

Advertisement