WoW:SecureActionButtonTemplate: Difference between revisions

→‎menu: using the .showmenu table key does not work, use the .menu key instead
No edit summary
(→‎menu: using the .showmenu table key does not work, use the .menu key instead)
Line 272: Line 272:
{| border="1" style="border-collapse: collapse;" cellpadding="4"
{| border="1" style="border-collapse: collapse;" cellpadding="4"
|-----
|-----
| Requires that the button have a "showmenu" property set. This property should be a function that takes a unit as a parameter.
| Requires that the button have a "menu" property set. This property should be a function that takes a unit as a parameter.
|}
|}


Clicking this button will call :Click() on myOtherButton.
Clicking this button will call :Click() on myOtherButton.
  frame:SetAttribute("type", "menu")
  frame:SetAttribute("type", "menu")
  frame.showmenu = some_function_that_shows_a_menu
  frame.menu = some_function_that_shows_a_menu
----
----


Anonymous user