We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
See https://select2.org/
Extends: Select » Control » Renderable
Sets or gets an option if you specify a $value will set it and return $this. else will return the option value
$this
Definition: public function opt($name, $value=null)
public function opt($name, $value=null)
Returns: static|mixed If setting an option returns $this, else returns the option value
static|mixed
Parameters:
string $name option name
string $name
mixed $value option value or null
mixed $value
Sets up AJAX loading of values.
Definition: public function setAjax($url)
public function setAjax($url)
Returns: static
static
string $url
De-/Activates the multi-select feature.
Definition: public function setMultiple($on=true, $sort_selection=true)
public function setMultiple($on=true, $sort_selection=true)
bool $on True=on, false=off
bool $on
bool $sort_selection If true embedded sorting is on, else it will be deactivated
bool $sort_selection
Sets the current value.
Definition: public function setValue($value)
public function setValue($value)