-
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 $nameoption name -
mixed $valueoption value or null
Sets up AJAX loading of values.
Definition: public function setAjax($url)
Returns: static
Parameters:
-
string $urlThe data URL
De-/Activates the multi-select feature.
Definition: public function setMultiple($on=true, $sort_selection=true)
Returns: static
Parameters:
-
bool $onTrue=on, false=off -
bool $sort_selectionIf true embedded sorting is on, else it will be deactivated
Sets the current value.
Definition: public function setValue($value)
Returns: static
Parameters:
-
mixed $valueThe value