new InputElementWithLabel()
- Source:
Extends
Methods
-
appendTo(parent)
-
Appends the derived object and any label to a DOM node
Parameters:
Name Type Description parent
Object The DOM element to which this is added - Source:
-
disable()
-
Disables the object
- Inherited From:
- Source:
-
enable()
-
Enables the object
- Inherited From:
- Source:
-
onChange(listener)
-
Attaches an onchange handler to the object
Parameters:
Name Type Description listener
function The event listener to add - Inherited From:
- Source:
-
onClick(listener)
-
Attaches an onclick handler to the object
Parameters:
Name Type Description listener
function The event listener to add - Inherited From:
- Source:
-
setLabel(text)
-
Sets the text for the associated label.
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: