ESODecoded

ApplyTemplateToControl

ESO Lua API function — used by 39 of the 3,030 addons we indexed (combined 15,526,286 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

ApplyTemplateToControl(object control, string virtualName)

Real usage — from LibLazyCrafting

	-- control:SetColor(GetInterfaceColor(INTERFACE_COLOR_TYPE_TEXT_COLORS, INTERFACE_TEXT_COLOR_NORMAL))
	ApplyTemplateToControl(control, "ZO_DefaultButton")
	control:SetText("LLC: Craft gear links")

Short excerpt from the shipping addon LibLazyCraftingits 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
LibLazyCrafting6,538,592
Votan's Minimap4,211,718
PerfectPixel1,399,987
Dolgubon's Lazy Set Crafter1,172,957
LibScrollableMenu748,266
Fancy Action Bar470,272