namespace Nette\Forms
Class Checkbox
Check box control. Allows the user to select a true or false condition.
- Nette\Object
-
Nette\Component implements Nette\IComponent
-
Nette\Forms\FormControl implements IFormControl
-
Nette\Forms\Checkbox
public
|
#
__construct(
string
$label = NULL
)
Parameters$label string label |
public
Checkbox
|
#
setValue(
bool
$value
)
Sets control's value. Sets control's value. Parameters$value boolReturnsCheckbox provides a fluent interface
Implementation of |
public
Nette\Web\Html
|
#
getControl(
)
Generates control's HTML element. Generates control's HTML element. |
Methods Inherited From FormControl
__construct(), attached(), getForm(), getHtmlName(), setHtmlId(), getHtmlId(), setAttribute(), setOption(), getOption(), getOptions(), setTranslator(), getTranslator(), translate(), setValue(), getValue(), isFilled(), setDefaultValue(), loadHttpData(), setDisabled(), isDisabled(), getControl(), getLabel(), getControlPrototype(), getLabelPrototype(), addRule(), addCondition(), addConditionOn(), getRules(), setRequired(), isRequired(), validateEqual(), validateFilled(), validateValid(), addError(), getErrors(), hasErrors(), cleanErrors()
Methods Inherited From Nette\Component
__construct(), lookup(), lookupPath(), monitor(), unmonitor(), attached(), detached(), getName(), getParent(), validateParent(), __clone(), __wakeup()
Methods Inherited From Nette\Object
getReflection(), __call(), __callStatic(), extensionMethod(), __get(), __set(), __isset(), __unset()
Constants Inherited From Nette\Component
NAME_SEPARATOR
Properties Inherited From FormControl
$idMask, $caption, $value, $control, $label