Class InputElement
The generic input element, from which others are derived
Defined in: inputElement.js.
Constructor Attributes | Constructor Name and Description |
---|---|
InputElement(tag)
|
Method Attributes | Method Name and Description |
---|---|
appendTo(parent)
Appends the derived object to a DOM node
|
|
disable()
Disables the object
|
|
enable()
Enables the object
|
|
onChange(listener)
Attaches an onchange handler to the object
|
|
onClick(listener)
Attaches an onclick handler to the object
|
Method Detail
appendTo(parent)
Appends the derived object to a DOM node
- Parameters:
- {DOM element} parent
- The DOM node to which this is added
disable()
Disables the object
enable()
Enables the object
onChange(listener)
Attaches an onchange handler to the object
- Parameters:
- {function} listener
- The event listener to add
onClick(listener)
Attaches an onclick handler to the object
- Parameters:
- {function} listener
- The event listener to add