Add Tag
Tag API
Registers a new ElvUI unit frame tag backed by events or an update throttle.
NamespaceEModuleTagsLifecyclestable
E:AddTag(tagName, eventsOrSeconds, func, block, spells)Registers a new ElvUI unit frame tag backed by events or an update throttle.
Parameters
Section titled “Parameters”- tagName: Tag token.
- eventsOrSeconds: Event string or numeric update interval.
- func: Function that returns tag text.
- block: Truthy value prevents registration.
- spells: Optional spell metadata.
Returns
Section titled “Returns”None.
Example
Section titled “Example”E:AddTag("myaddon:health", "UNIT_HEALTH UNIT_MAXHEALTH", function(unit) return UnitHealth(unit)end)Main addon extension point for custom unit frame text tags.
Source: ElvUI/Game/Shared/Tags/API.lua:89