This is an old revision of the document!
A widget is a UI component such as the inventory window or item container window. A widget's layout is grid-based and contains child elements that either display information to the player (e.g. the player's health or description of a quest) or allow the player to interact with them (e.g. a button that triggers a script or a slot for placing an item into). Custom widgets can be created in the Widget Editor.
Custom widgets can be displayed in-game using the Show Widget scripting function. You can also add them to the management screen by adding their IDs to the comma-separated list of widgets in the “Experimental” section of your Game Configuration.
(Accessing elements within a widget to change them or get a value from them)