-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_controls_form_select2.class
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
Definition: public function opt($name, $value=null)
Returns: static|mixed
If setting an option returns $this
, else returns the option value
Parameters:
-
string $name
option name -
mixed $value
option value or null
Sets up AJAX loading of values.
Definition: public function setAjax($url)
Returns: static
Parameters:
-
string $url
The data URL
De-/Activates the multi-select feature.
Definition: public function setMultiple($on=true, $sort_selection=true)
Returns: static
Parameters:
-
bool $on
True=on, false=off -
bool $sort_selection
If true embedded sorting is on, else it will be deactivated
Sets the current value.
Definition: public function setValue($value)
Returns: static
Parameters:
-
mixed $value
The value