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
string|object|false
getPrompt()
Returns first prompt item?
setItems(array $items, bool $useKeys = true)
Sets options and option groups from which to choose.
Html|string
getControl()
Generates control's HTML element.
addOptionAttributes(array $attributes)
No description
setOptionAttribute(string $name, $value = true)
No description
bool
isOk()
No description
array
getOptionAttributes()
No description
Details
at line 33
__construct($label = null, array $items = null)
No description
at line 50
SelectBox
setPrompt(string|object|false $prompt)
Sets first prompt item in select box.
at line 61
string|object|false
getPrompt()
Returns first prompt item?
at line 71
ChoiceControl
setItems(array $items, bool $useKeys = true)
Sets options and option groups from which to choose.
at line 92
Html|string
getControl()
Generates control's HTML element.
at line 110
SelectBox
addOptionAttributes(array $attributes)
No description
at line 118
SelectBox
setOptionAttribute(string $name, $value = true)
No description
at line 125
bool
isOk()
No description
at line 135
array
getOptionAttributes()
No description