selectedHelper
View helper with value
Tags
Table of Contents
- $isMultiple : bool
- Select multiple options
- $selected : string|array<string|int, mixed>
- Element value
- setIsMultiple() : $this
- Enable multiple selection
- setSelected() : $this
- Set preselected value
- getSelectedString() : string
- Return selected string
Properties
$isMultiple
Select multiple options
protected
bool
$isMultiple
= false
$selected
Element value
protected
string|array<string|int, mixed>
$selected
= ''
Methods
setIsMultiple()
Enable multiple selection
public
setIsMultiple(bool $isMultiple) : $this
Parameters
- $isMultiple : bool
Return values
$this —setSelected()
Set preselected value
public
setSelected(string|int|array<string|int, mixed> $selected) : $this
Parameters
- $selected : string|int|array<string|int, mixed>
Return values
$this —getSelectedString()
Return selected string
protected
getSelectedString() : string