4.3  <control>

This tag loads a control by the given interface and binds it to the given ID.

This does exactly the same as the inline scripting command get_control(interface). This, however, is the preferred way of loading controls, since it's cleaner.

4.3.1  Attributes

Name Type Default Value Description
id string An identifier for accessing the control within inline scripts.
interface string The unique identifier of the interface that you need.

4.3.2  Examples

<display>

  <control id="myctrl" interface="ITime:9y703dqtfnv4w373caserz68r"/>

  <label value="click me for time" on-click="self.value=myctrl.time"/>

</display>