SelectBox
class SelectBox extends ChoiceControl
Select box control that allows single item selection.
Constants
VALID |
validation rule |
Methods
__construct($label = null, array $items = null)
No description
mixed
getPrompt()
Returns first prompt item?
setItems(array $items, $useKeys = true)
Sets options and option groups from which to choose.
Html|string
getControl()
Generates control's HTML element.
addOptionAttributes(array $attributes)
No description
bool
isOk()
No description
Details
at line 31
__construct($label = null, array $items = null)
No description
at line 48
SelectBox
setPrompt($prompt)
Sets first prompt item in select box.
at line 59
mixed
getPrompt()
Returns first prompt item?
at line 69
ChoiceControl
setItems(array $items, $useKeys = true)
Sets options and option groups from which to choose.
at line 94
Html|string
getControl()
Generates control's HTML element.
at line 114
SelectBox
addOptionAttributes(array $attributes)
No description
at line 124
bool
isOk()
No description