new Label(properties)
Creates a new instance of Label.
Parameters:
Name |
Type |
Description |
properties |
Object
|
An object that contains the properties of the Label Item.
Properties
Name |
Type |
Argument |
Description |
dataElement |
string
|
|
The data element of the label item. |
label |
string
|
|
The text to be shown as the label. |
title |
string
|
<optional>
|
The tooltip of the label item. |
style |
Object
|
<optional>
|
An object defining inline CSS styles for the label, where each key represents a CSS property and its corresponding value. |
className |
string
|
<optional>
|
String with CSS classes to be applied to the label, allowing additional styling and customization through external stylesheets. |
|
Example
const labelItem = new instance.UI.Components.Label({
dataElement: 'label1',
title: 'Testing Label',
label: 'Label 1',
});