LabelElement
class enables the creation of a label element in a user interface.
Name | Type | Description |
---|---|---|
elementId | string | This property in constructor accepts the ID for the element |
label | string | This property in constructor accepts the text for the label |
LabelElement
class:
In this example, a new instance of LabelElement
is created with the elementId “1” and the label text “Username”.
LabelElement
: