Class MultiChoiceControl
Choice control that allows multiple items selection.
-
Nette\Object
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
-
Nette\Forms\Controls\BaseControl
implements
Nette\Forms\IControl
-
Nette\Forms\Controls\MultiChoiceControl
Methods summary
public
|
|
public
|
|
public
array
|
#
getValue( )
Returns selected keys.
Returns
array array
Overrides
|
public
array
|
#
getRawValue( )
Returns selected keys (not checked).
Returns selected keys (not checked).
Returns
array array
|
public
boolean
|
#
isFilled( )
Is any item selected?
Returns
boolean bool
Overrides
|
public
Nette\Forms\Controls\MultiChoiceControl
|
#
setItems( array $items, boolean $useKeys = TRUE )
Sets items from which to choose.
Sets items from which to choose.
Parameters
Returns
|
public
array
|
#
getItems( )
Returns items from which to choose.
Returns items from which to choose.
Returns
array array
|
public
array
|
|
public
Nette\Forms\Controls\MultiChoiceControl
|
#
setDisabled( boolean|array $value = TRUE )
Disables or enables control or items.
Disables or enables control or items.
Parameters
Returns
Overrides
|
public
string
|
#
getHtmlName( )
Returns HTML name of control.
Returns HTML name of control.
Returns
string string
Overrides
|
Methods inherited from Nette\Forms\Controls\BaseControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControl(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHttpData(),
getLabel(),
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()
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$disabled,
$errors,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$required,
$value
|