Class SelectBox
Select box control that allows single item selection.
-
Nette\Object
-
Nette\ComponentModel\Component
implements
Nette\ComponentModel\IComponent
-
Nette\Forms\Controls\BaseControl
implements
Nette\Forms\IControl
-
Nette\Forms\Controls\ChoiceControl
-
Nette\Forms\Controls\SelectBox
Methods summary
public
Nette\Forms\Controls\SelectBox
|
#
setPrompt( string $prompt )
Sets first prompt item in select box.
Sets first prompt item in select box.
Parameters
Returns
|
public
mixed
|
#
getPrompt( )
Returns first prompt item?
Returns first prompt item?
Returns
mixed
|
public
Nette\Forms\Controls\SelectBox
|
#
setItems( array $items, boolean $useKeys = TRUE )
Sets options and option groups from which to choose.
Sets options and option groups from which to choose.
Parameters
- $items
array
- $useKeys
boolean
Returns
Overrides
|
public
Nette\Utils\Html
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
Overrides
|
public
|
#
validate( )
Performs the server side validation.
Performs the server side validation.
Overrides
|
Methods inherited from Nette\Forms\Controls\BaseControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
exportRules(),
getControlPrototype(),
getError(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getHttpData(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
isOmitted(),
isRequired(),
setAttribute(),
setDefaultValue(),
setHtmlId(),
setOmitted(),
setOption(),
setRequired(),
setTranslator(),
translate()
|
Methods inherited from Nette\ComponentModel\Component
__clone(),
__sleep(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
unmonitor(),
validateParent()
|
Constants summary
string |
VALID
|
':selectBoxValid' |
|
Magic properties summary
public
boolean
|
$prompt
|
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$defaultValue,
$disabled,
$errors,
$filled,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$options,
$required,
$rules,
$translator,
$value
|