label tag

A label tag references a DataField in the context hierarchy and creates text on the HTML page with the value of the DataField.
Table 1. LabelTag attributes
Attribute Description Default value
dataName Name of the DataField in the context hierarchy. This is a required value if the text attribute is not defined. null
fontColor Color of the text null
fontSize Size of the text null
fontFace Typeface of the text null
style Style for the label null
text Key to use when searching in a resource bundle for the text to render. If the LabelTag has this attribute defined, it does not use a dataName attribute. null

The following is an example of using label tag:

<h1>Using the Label Tag</h1>
<btt:label dataName="aField"/><br>
<btt:label dataName="aField" fontColor="teal" fontSize="5"/><br>
<btt:label dataName="aField" fontColor="#44FF44" fontSize="+1" fontFace="Arial"/><br>
<btt:label dataName="aField" style="orangered"/><br>
<btt:label text="messageOne"/><br>