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
    • 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

Class MultiChoiceControl

Choice control that allows multiple items selection.

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\MultiChoiceControl

Direct known subclasses

Nette\Forms\Controls\CheckboxList, Nette\Forms\Controls\MultiSelectBox
Abstract
Namespace: Nette\Forms\Controls
Located at Forms/Controls/MultiChoiceControl.php
Methods summary
public
# __construct( string|object $label = null, array $items = null )

Parameters

$label
$items

Overrides

Nette\Forms\Controls\BaseControl::__construct()
public
# loadHttpData( )

Loads HTTP data.

Loads HTTP data.

Overrides

Nette\Forms\Controls\BaseControl::loadHttpData()
public array
# getValue( )

Returns selected keys.

Returns selected keys.

Returns

array
array

Overrides

Nette\Forms\Controls\BaseControl::getValue()
public array
# getRawValue( )

Returns selected keys (not checked).

Returns selected keys (not checked).

Returns

array
array
public boolean
# isFilled( )

Is any item selected?

Is any item selected?

Returns

boolean
bool

Overrides

Nette\Forms\Controls\BaseControl::isFilled()
public Nette\Forms\Controls\MultiChoiceControl
# setItems( array $items, boolean $useKeys = true )

Sets items from which to choose.

Sets items from which to choose.

Parameters

$items
$useKeys

Returns

Nette\Forms\Controls\MultiChoiceControl
static
public array
# getItems( )

Returns items from which to choose.

Returns items from which to choose.

Returns

array
array
public array
# getSelectedItems( )

Returns selected values.

Returns selected values.

Returns

array
array
public Nette\Forms\Controls\MultiChoiceControl
# setDisabled( boolean|array $value = true )

Disables or enables control or items.

Disables or enables control or items.

Parameters

$value

Returns

Nette\Forms\Controls\MultiChoiceControl
static

Overrides

Nette\Forms\Controls\BaseControl::setDisabled()
public string
# getHtmlName( )

Returns HTML name of control.

Returns HTML name of control.

Returns

string
string

Overrides

Nette\Forms\Controls\BaseControl::getHtmlName()
Methods inherited from Nette\Forms\Controls\BaseControl
__call(), addCondition(), addConditionOn(), addError(), addRule(), attached(), cleanErrors(), enableAutoOptionalMode(), extensionMethod(), getControl(), getControlPart(), getControlPrototype(), getError(), getErrors(), getForm(), getHtmlId(), getHttpData(), getLabel(), getLabelPart(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), hasErrors(), isDisabled(), isOmitted(), isRequired(), setAttribute(), setDefaultValue(), setHtmlAttribute(), setHtmlId(), setOmitted(), setOption(), setRequired(), setTranslator(), translate(), validate()
Methods inherited from Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), unmonitor(), validateParent()
Methods inherited from Nette\Forms\IControl
setValue()
Methods inherited from Nette\ComponentModel\IComponent
setParent()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
public boolean $checkAllowedValues
#true
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties summary
public array $items
public read-only array $selectedItems
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-20170829 API API documentation generated by ApiGen 2.8.0