Register DataText Panel
DataText API
Registers a custom panel that can host one or more ElvUI DataText slots.
NamespaceDTModuleDataTextsLifecyclestable
DT:RegisterPanel(panel, numPoints, anchor, xOff, yOff, vertical)Registers a custom panel that can host one or more ElvUI DataText slots.
Parameters
Section titled “Parameters”panel: Frame with a name. numPoints: Number of DataText slots. anchor/xOff/yOff: Tooltip anchor details. vertical: Layout slots vertically.
Returns
Section titled “Returns”None.
Example
Section titled “Example”DT:RegisterPanel(MyPanel, 2, "ANCHOR_TOP", 0, 4)Useful for addon layouts that want to host ElvUI DataTexts in custom frames.
Source: ElvUI/Game/Shared/Modules/DataTexts/DataTexts.lua:394