Class ElementLabel
A label object, since some objects have a label via composition
Defined in: inputElement.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
setLabel(text)
Sets the text for the associated label.
|
|
setTextAlign(text)
Sets the text alignment for the associated label.
|
Method Detail
setLabel(text)
Sets the text for the associated label. Creates a DOM label element if not existing.
- Parameters:
- {string} text
- The label for the including object.
setTextAlign(text)
Sets the text alignment for the associated label. Default is left.
- Parameters:
- {string} text
- The desired alignment, either 'left' or 'right'