new ElementLabel()
- Source:
Methods
-
getLabel() → {string}
-
Retrieves the text for the associated label.
- Source:
Returns:
The label for the including object.- Type
- string
-
setLabel(text)
-
Sets the text for the associated label. Creates a DOM label element if not existing.
Parameters:
Name Type Description text
string The label for the including object. - Source:
-
setTextAlign(text)
-
Sets the text alignment for the associated label. Default is left.
Parameters:
Name Type Description text
string The desired alignment, either 'left' or 'right' - Source: