AxuItemMenus AddDynamicTestHook
From WoWWiki
<< AxuItemMenus
WoWWiki Hosted AddOn Sub-Page
This article is a part of the documentation of the AxuItemMenus function library
-- Function: -- AxuItemMenus_AddDynamicTestHook(test_func, info_func) -- -- Parameters: -- test_func: a function that returns true, -- if the menuinfo should be added -- info_func: a function that returns an -- info table for UIDropDownMenu_AddButton() -- -- Returns: -- handle: a handle you can use to remove the hook
This function is otherwise identical to AxuItemMenus AddTestHook except that a function that returns a menuinfo structure is given in place of a menuinfo table.
Neither the test_func nor the info_func are given any parameters when they are called. You should use the global AxuItemMenus_C, AxuItemMenus_I, AxuItemMenus class and AxuItemMenus this variables as parameters.
