Class InputElementWithLabel
Extends
InputElement.
This is a derived type, that includes an InputElement and a label as well.
It IS an input element, it HAS a label.
Defined in: inputElement.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
appendTo(parent)
Appends the derived object and any label to a DOM node
|
|
setLabel(text)
Sets the text for the associated label.
|
|
setTextAlign(text)
Sets the text alignment for the associated label.
|
- Methods borrowed from class InputElement:
- disable, enable, onChange, onClick
Method Detail
appendTo(parent)
Appends the derived object and any label to a DOM node
- Parameters:
- {DOM element} parent
- The DOM node to which this is added
setLabel(text)
Sets the text for the associated label.
- 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'