Class SelectBox
Select box control that allows single item selection.
-
Nette\Object
-
Nette\Component
implements
Nette\IComponent
-
Nette\Forms\FormControl
implements
Nette\Forms\IFormControl
-
Nette\Forms\SelectBox
Methods summary
public
|
#
__construct( string $label = NULL, array $items = NULL, integer $size = NULL )
Parameters
- $label
string label
- $items
array items from which to choose
- $size
integer number of rows that should be visible
|
public
mixed
|
#
getValue( )
Returns selected item key.
Returns selected item key.
Returns
mixed
Implementation of
|
public
mixed
|
#
getRawValue( )
Returns selected item key (not checked).
Returns selected item key (not checked).
Returns
mixed
|
public
Nette\Forms\SelectBox
|
#
skipFirst( string $item = NULL )
Ignores the first item in select box.
Ignores the first item in select box.
Parameters
Returns
|
final public
boolean
|
#
isFirstSkipped( )
Is first item in select box ignored?
Is first item in select box ignored?
Returns
boolean
|
final public
boolean
|
|
public
Nette\Forms\SelectBox
|
#
setItems( array $items, $useKeys = TRUE )
Sets items from which to choose.
Sets items from which to choose.
Parameters
Returns
|
final public
array
|
#
getItems( )
Returns items from which to choose.
Returns items from which to choose.
Returns
array
|
public
string
|
|
public
Nette\Web\Html
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
|
public static
boolean
|
|
Methods inherited from Nette\Forms\FormControl
addCondition(),
addConditionOn(),
addError(),
addRule(),
attached(),
cleanErrors(),
getControlPrototype(),
getErrors(),
getForm(),
getHtmlId(),
getHtmlName(),
getLabel(),
getLabelPrototype(),
getOption(),
getOptions(),
getRules(),
getTranslator(),
hasErrors(),
isDisabled(),
loadHttpData(),
notifyRule(),
setDefaultValue(),
setDisabled(),
setHtmlId(),
setOption(),
setTranslator(),
setValue(),
translate(),
validateEqual(),
validateValid()
|
Methods inherited from Nette\Component
__clone(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
Properties summary
protected
array
|
$allowed
|
array() |
|