- This function is implemented in
FrameXML/UIDropDownMenu.lua
.
- This function is implemented in
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[]
- UI Object UIDropDownMenu: template documentation.
- Using UIDropDownMenu