Input
Extends:
DOMElement → Input
Class used to handle an Input (<input>).
Example:
// Given the following HTML input element:
// <input id="value"></button>
var value = new Input("value", function(val) {
console.log(val);
});
Constructor Summary
Public Constructor | ||
public |
constructor(id: string, onChange: function) |
Member Summary
Public Members | ||
public |
Default value for the input. |
|
public |
Flag for remembering if the input is invalid. |
|
public |
Defines if the parsed value must be casted to a number, otherwise the input is invalid. |
|
public |
Callback function for when the input value changes. |
|
public |
Callback function for when the focus is lost. |
|
public |
Stores the parsed value of the input. |
Inherited Summary
From class DOMElement | ||
public |
Stores if the element is enabled or disabled. |
|
public |
jQuery reference to the element. |
|
public |
Enable or disable the DOM element. |