Skip to content

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.

  • frame: Button or secure frame that should receive click registration.

None.

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