Class Index | File Index

Classes


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.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
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.
 
Sets the text alignment for the associated label.
Methods borrowed from class InputElement:
disable, enable, onChange, onClick
Class Detail
InputElementWithLabel(tag)
Parameters:
tag
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'

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Mar 26 2010 16:00:14 GMT-0700 (PDT)