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)
shaliShort excerpt from the shipping addon LoreBooks — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| LoreBooks | 13,090,355 |
| HarvestMap | 9,454,533 |
| Combat Metrics | 7,085,289 |
| AUI - Advanced UI | 5,406,091 |
| LibCustomMenu | 5,241,911 |
| AwesomeGuildStore | 4,722,462 |