ESODecoded

CreateControlFromVirtual

ESO Lua API function — used by 255 of the 3,030 addons we indexed (combined 81,827,999 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

CreateControlFromVirtual(string controlName, object parent, string virtualName, string optionalSuffix)

Returns: object control

Real usage — from LoreBooks

        if not shalidorCollectionName then
          shalidorCollectionName = CreateControlFromVirtual("$(parent)CollectionName", LoreBooksReportContainerScrollChild, "Lorebook_ShaliCollectionName_Template", collectionIndex)
          shali

Short excerpt from the shipping addon LoreBooksits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
LoreBooks13,090,355
HarvestMap9,454,533
Combat Metrics7,085,289
AUI - Advanced UI5,406,091
LibCustomMenu5,241,911
AwesomeGuildStore4,722,462