Mashup Builder > Widgets > Beta Widgets > Label Widget (Beta)
  
Label Widget (Beta)
The Label widget enables you to display a read-only text label in the mashup.
* 
The Label widget is available as a Beta widget in the platform and as a web component that can be imported from an SDK.
The SDK is available at PTC Support under Download Software > Order or Download Software Updates > ThingWorx Platform > Release 8.4.
The properties of the Label widget are listed below.
Property Name
Description
Base Type
Default Value
Bindable? (Y/N)
Localizable? (Y/N)
MultiLine
Allows the label text to continue onto another line.
BOOLEAN
False
N
N
MaxHeight
Enables you to set a maximum height for the label text. If the label text size is greater than the maximum height that you have set, the text is truncated and you can use Show More or Show Less options to view the text at the runtime.
When the maximum height is not set, the label is based on the label size.
* 
This property is available when the MultiSelect property is selected.
NUMBER
n/a
N
N
MaxWidth
Enables you to set a maximum width for the label text.
The label is displayed on multiple lines if the MultiLine property is selected and the maximum width is reached. The label is truncated if the MultiLine property is not selected
* 
The maximum width of the widget is reset if you set fixed width for the label.
NUMBER
n/a
N
N
HorizontalAlignment
Enables you to align the label along the horizontal axis to the left, right or centre.
STRING
Left
N
N
VerticalAlignment
Enables you to align the label along the vertical axis to the top, bottom or centre.
STRING
Top
N
N
LabelText
The text that is displayed as the label.
STRING
n/a
Y
Y
CustomClass
Enables you to define the CSS to the top div of the widget. Multiple classes can be entered, separated by space.
STRING
n/a
Y
N
Width
The width of the widget. The width is set to the width of the label by default. Enter a value in the property panel or resize the widget in the canvas to set a fixed width.
* 
The fixed width of the widget is reset if you set maximum width for the label.
NUMBER
n/a
N
N
Height
The height of the widget. The height is set to the maximum width of the label by default. It increases if the widget has multiline label. Enter a value in the property panel or resize the widget in the canvas to set a fixed height.
* 
The fixed height is reset if you set a maximum height.
NUMBER
n/a
N
N