Class Checkbox (namespace Nette\Forms)
Check box control. Allows the user to select a true or false condition.
Object | --Component | --FormControl | --Checkbox
| Public Method Summary | |
|---|---|
| Checkbox |
__construct
(string $label)
|
| Html |
getControl
()
Generates control's HTML element.
|
| void |
setValue
(bool $value)
Sets control's value.
|
| Methods Inherited From Component |
|---|
| __construct(), attached(), detached(), getName(), getParent(), getService(), getServiceLocator(), lookup(), lookupPath(), monitor(), setParent(), setServiceLocator(), validateParent(), __clone(), __wakeup() |
| Methods Inherited From Object |
|---|
| extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
| Variable Summary |
|---|
| Method Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 40 __constructpublic Checkbox __construct (string $label)
|
||||||||||||
|
line 65 getControlpublic Html getControl () Generates control's HTML element.
|
||||||||||||
|
line 54 setValuepublic void setValue (bool $value) Sets control's value.
|
||||||||||||
