Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • BaseControl
  • Button
  • Checkbox
  • CheckboxList
  • ChoiceControl
  • CsrfProtection
  • HiddenField
  • ImageButton
  • MultiChoiceControl
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Checkbox

Check box control. Allows the user to select a true or false condition.

Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\Checkbox
Namespace: Nette\Forms\Controls
Located at Forms/Controls/Checkbox.php
Methods summary
public
# __construct( string|object $label = null )

Parameters

$label

Overrides

Nette\Forms\Controls\BaseControl::__construct()
public Nette\Forms\Controls\Checkbox
# setValue( boolean $value )

Sets control's value.

Sets control's value.

Parameters

$value

Returns

Nette\Forms\Controls\Checkbox
static

Internal

Overrides

Nette\Forms\Controls\BaseControl::setValue()
public boolean
# isFilled( )

Is control filled?

Is control filled?

Returns

boolean
bool

Overrides

Nette\Forms\Controls\BaseControl::isFilled()
public Nette\Utils\Html
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

Nette\Utils\Html
Html

Overrides

Nette\Forms\Controls\BaseControl::getControl()
public
# getLabel( string|object $caption = null )

Bypasses label generation.

Bypasses label generation.

Parameters

$caption

Overrides

Nette\Forms\Controls\BaseControl::getLabel()
public Nette\Utils\Html
# getControlPart( )

Returns

Nette\Utils\Html
Html

Overrides

Nette\Forms\Controls\BaseControl::getControlPart()
public Nette\Utils\Html
# getLabelPart( )

Returns

Nette\Utils\Html
Html

Overrides

Nette\Forms\Controls\BaseControl::getLabelPart()
public Nette\Utils\Html
# getSeparatorPrototype( )

Returns wrapper HTML element template.

Returns wrapper HTML element template.

Returns

Nette\Utils\Html
Html
Methods inherited from Nette\Forms\Controls\BaseControl
__call(), addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), enableAutoOptionalMode(), extensionMethod(), getControlPrototype(), getError(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getHttpData(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isOmitted(), isRequired(), loadHttpData(), setAttribute(), setDefaultValue(), setDisabled(), setHtmlAttribute(), setHtmlId(), setOmitted(), setOption(), setRequired(), setTranslator(), translate(), validate()
Methods inherited from Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $disabled, $error, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $omitted, $options, $required, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0