Option
Extends:
DOMElement → Option
Class used to handle a checkbox (<input type="checkbox">).
Example:
// Given the following HTML checkbox:
// <input type="checkbox" id="showPoints">
var showPoints = new Option("showPoints", function(val) {
console.log(val);
});
Constructor Summary
Public Constructor | ||
public |
constructor(id: string, onClick: function) |
Member Summary
Public Members | ||
public |
Callback function for when the checkbox changes state. |
|
public |
State of the option. |
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. |