SelectBox
class SelectBox extends ChoiceControl
Select box control that allows single item selection.
Constants
Valid |
validation rule |
deprecated VALID |
|
Methods
__construct($label = null, array|null $items = null)
No description
string|Stringable|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.
setOptionAttribute(string $name, mixed $value = true)
No description
bool
isOk()
No description
array
getOptionAttributes()
No description
Details
at line 33
__construct($label = null, array|null $items = null)
No description
at line 48
SelectBox
setPrompt(string|Stringable|false $prompt)
Sets first prompt item in select box.
at line 58
string|Stringable|false
getPrompt()
Returns first prompt item.
at line 67
ChoiceControl
setItems(array $items, bool $useKeys = true)
Sets options and option groups from which to choose.
at line 90
Html|string
getControl()
Generates control's HTML element.
at line 119
SelectBox
addOptionAttributes(array $attributes)
deprecated
deprecated
No description
at line 126
SelectBox
setOptionAttribute(string $name, mixed $value = true)
No description
at line 133
bool
isOk()
No description
at line 143
array
getOptionAttributes()
No description