
Public Member Functions | |
| __construct ($name, $value="", $checked=false) | |
| Creates a new checkbox. | |
| renderComponent ($class, $style, $events, $id) | |
boolean: initial state of checkbox (checked or not)
Definition at line 15 of file TKCheckBox.php5.
| TKCheckBox::__construct | ( | $ | name, | |
| $ | value = "", |
|||
| $ | checked = false | |||
| ) |
Creates a new checkbox.
| $name | [string]: name of checkbox variable | |
| $value | [string]: HTML value attribute of checkbox (not required) | |
| $checked | [boolean]: whether checkbox should be initially checked or not |
Reimplemented from TKFormInput.
Definition at line 22 of file TKCheckBox.php5.
References TKComponent::addEvent(), TKComponent::addProperty(), and TKComponent::setAction().
| TKCheckBox::renderComponent | ( | $ | class, | |
| $ | style, | |||
| $ | events, | |||
| $ | id | |||
| ) |
For internal use only.
Reimplemented from TKFormInput.
Definition at line 38 of file TKCheckBox.php5.
References TKComponent::$id.
1.5.6