Lore archive · Warcraft Wiki, 2023 dump
API UIDropDownMenu Initialize
Last wiki revision 2018-11-26
Binds an initialization function to a dropdown menu, configures its appearance. UIDropDownMenu_Initialize(dropDown, initFunc, displayMode, level, menuList)
- dropDown : Frame - dropdown frame inheriting from to initialize.
- initFunc : Function - function that will be used to display the menu.
- displayMode : Optional string - if "MENU", the visual elements of dropDown will be hidden and the menu, when shown, will be styled as a context menu rather than a dropdown list.
- level : Optional, Any - Used as an argument to initFunc.
- menuList : Optional, Any - Used as an argument to initFunc.
This function will call initFunc(dropDown, level, menuList) when called, although the dropdown menu will not be shown. If your initialization function uses and , consider providing appropriate values.
If you're creating a dropdown menu, but do not need your initFunc to be called immediately, you can use dropDown.initialize = initFunc in place of this call.
Source
https://warcraft.wiki.gg/wiki/API_UIDropDownMenu_Initialize · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.