Component GetWidget

Returns a reference to a XML Widget so that you can change things about it
;Usage
widget = Component.GetWidget(widget_id)
Parameter	Type 	Description
widget_id	string	ID of widget from XML
;Return Value
Parameter	Type 	Description
widget 	userdata	Returns a reference to a widget. Type is Userdata. This object has some functions.
;Examples:
<nowiki>
local MAIN_WIDGET = Component.GetWidget("main");
function OnLoad()
	MAIN_WIDGET:SetText("loaded"); -- sets text of widget
end
</nowiki>
;Reference
* API_Functions/Widget
Category:Addon_API