The <label> tag creates an uneditable label component. A label may contain some combination of text, an icon, or formatted html.
Name | Description | Legal Values | Default |
halign | The horizontal alignment of the label contents when the label is placed in a container that is wider than the label contents. |
|
left |
valign | The vertical alignment of the label contents when the label is placed in a container that is taller than the label contents. |
|
center |
text |
The text to display. If the text is surrounded by "<html></html>" tags, the label is displayed as formatted html. Some notes about HTML in labels:
This attribute may contain backtick expressions . |
any text |
none |
icon | The URL of an image file to use as the label icon. This attribute may contain backtick expressions . |
Valid URL to an image file |
none |
Also see common parameters.
none
<box orientation="vert">
<label text="This is a plain label"/>
<label text="<html>This is a <b>formatted</b> <font size='16' color='red'>HTML</font> label. It takes extra effort to show a &lt; sign!</html>"/>
<label icon="file:docs/images/is_a.gif" text="This label has an icon"/>
</box>