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 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
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(),
setHtmlAttribute(),
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
|
|
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control,
$controlPrototype,
$disabled,
$errors,
$form,
$htmlId,
$htmlName,
$label,
$labelPrototype,
$omitted,
$required,
$value
|