|
The Label widget is available as a standard widget in the platform and as a web component that can be imported from an SDK.
|
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 run time.
When the maximum height is not set, the label is based on the label size.
|
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
|
NUMBER
|
n/a
|
N
|
N
|
||
HorizontalAlignment
|
Enables you to align the label along the horizontal axis to the left, right or center.
|
STRING
|
Left
|
N
|
N
|
||
VerticalAlignment
|
Enables you to align the label along the vertical axis to the top, bottom or center.
|
STRING
|
Top
|
N
|
N
|
||
LabelText
|
The text that is displayed as the label.
|
STRING
|
n/a
|
Y
|
Y
|
||
LabelType
|
Enables you to set the label type as Header, Sub-Header. Label or Body.
|
STRING
|
Label
|
Y
|
N
|
||
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
|
||
DisclosureControl
|
Allows the user to display a show more/less link or ellipsis using the following options Use ‘Show more...’ link or Display ellipsis (...) when the label overflows.
|
STRING
|
Use ‘Show more...’ link
|
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.
|
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.
|
NUMBER
|
n/a
|
N
|
N
|
||
PreserveWhiteSpace
|
Prevents the widget from collapsing multiple whitespace characters into a single whitesapce when defining a value in the LabelText property.
|
BOOLEAN
|
False
|
N
|
N
|
||
TooltipField
|
Sets a tooltip text that is displayed when you hover over the widget.
|
STRING
|
n/a
|
Y
|
Y
|
||
TooltipIcon
|
Sets an icon image for the tooltip of the widget.
You can add an image or specify an image URL path.
|
MEDIA ENTITY
|
n/a
|
N
|
N
|