Label

A display component for rendering text with optional outline styling. Multi-lingual display, CSS customization, and user interactions. Commonly used for form labels, section headings, and static text displays.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Label Text

label

multi-locale

The primary text content to be displayed in the label

Resource ID

resourceId

text

Unique identifier for the label component

Style Classes

styleClasses

text

Additional CSS classes for custom styling

Width Class

widthClass

text

Defines the width of the label component

Value

value

text

Optional alternative text value to display

Visibility

isVisible

boolean

Controls the visibility of the label component

Outlined

outlined

boolean

Renders the label with an outlined visual style instead of the default


Methods

Name

Description

fromValue

Converts the input value, handling HTML entity encoding for display

toValue

Converts the value, encoding HTML special characters for safe storage

handleEvent

Triggers the onclick event when the label is clicked


Events

Name

Description

onClick

Triggered when the label is clicked