Skip to main content
Version: v10.15

Label

The label represents a caption in a user interface. The label displays text on the page. Common use cases include

  • a page header
  • a form field label
  • a paragraph of text
  • a link

Features

The following features for Label can be set in the Class property from the Style tab of the Properties Panel.

Label Types

Label Styles

Properties

PropertyDescription
CaptionThe caption is the text that the end user sees on your label. It can be bound to a variable or another widget.
NameThe name is a unique identifier for label widget.
Accessibility
HintYou can enter any text for this property and it will be shown as a tooltip if the mouse hovers over this widget for 1.5 seconds. It can be bound to a variable or another widget.
Layout
WidthThe width of your widget can be specified in px or % (i.e 50px, 75%).
HeightThe height of your widget can be specified in px or % (i.e 50px, 75%).
Validation
RequiredA required editor in wm.LiveForm may refuse to save without a required field.
Behavior
ShowShowing determines whether or not a component is visible. It is a bindable property.
Load on Demand (visible only when show property is bound to a variable)When this property is set and show property is bound, the initialization of the widget will be deferred till the widget becomes visible. This behavior improves the load time. Use this feature with caution, as it has a downside (as we will not be able to interact with the widget through script until the widget is initialized). When show property is not bound the widget will be initialized immediately.
AnimationThis property controls the animation of an element. The animation is based on the CSS classes and works only in the run mode.
Format
Horizontal alignThis property specifies how the elements should be aligned horizontally.

Events

EventDescription
Mouse Events
On clickThis event handler is called whenever the click event is triggered on a widget.
On double clickThis event handler is called whenever the double click event is triggered on a widget.
On mouse enterThis event handler is called whenever the mouse enters the widget.
On mouse leaveThis event handler is called whenever the mouse leaves the widget.
Touch Events
On tapThis event handler is called whenever the tap event is triggered on a widget.
On double tapThis event handler is called whenever the double tap event is triggered on a widget.