Register Clicks
UI Utility
Registers secure click behavior with the right AnyDown/AnyUp pattern for the active WoW client.
NamespaceEModuleCoreLifecyclestable
E:RegisterClicks(frame)Registers secure click behavior with the right AnyDown/AnyUp pattern for the active WoW client.
Parameters
Section titled “Parameters”- frame: Button or secure frame that should receive click registration.
Returns
Section titled “Returns”None.
Example
Section titled “Example”E:RegisterClicks(MyAddonButton)Use this instead of hard-coding RegisterForClicks when addon controls need ElvUI-compatible click behavior across game versions.
Source: ElvUI/Game/Shared/General/API.lua:223