Skip to main content
Version: v4

Label Element

The LabelElement class enables the creation of a label element in a user interface.

Constructor

NameTypeDescription
elementIdstringThis property in constructor accepts the Id for the element
labelstringThis property in constructor accepts the text for label

Class Usage

Here's an example of how you can create an instance of the LabelElement class:

In this example, a new instance of LabelElement is created with the elementId "1" and the label text "Username".

Example

Here is an example that showcases the creation and manipulation of an instance of LabelElement:

// Create a new instance of the class
String elementId = "1";
String label = "Username";
LabelElement labelElement = new LabelElement(elementId, label);