Class NSelectBox
Select box control that allows single item selection.
-
NObject
-
NComponent
implements
IComponent
-
NFormControl
implements
IFormControl
-
NSelectBox
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
NSelectBox
|
#
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
NSelectBox
|
#
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
NHtml
|
#
getControl( )
Generates control's HTML element.
Generates control's HTML element.
Returns
|
public static
boolean
|
#
validateFilled( IFormControl $control )
Filled validator: has been any item selected?
Filled validator: has been any item selected?
Parameters
Returns
boolean
|
Methods inherited from NFormControl
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 NComponent
__clone(),
__wakeup(),
detached(),
getName(),
getParent(),
lookup(),
lookupPath(),
monitor(),
setParent(),
unmonitor(),
validateParent()
|
Properties summary
protected
array
|
$allowed
|
array() |
|