Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$vars ['class'] = elgg_extract_class($vars, ['elgg-input-select']) | |
Elgg select input Displays a select input field. More... | |
$defaults | |
$options_values = [] | |
$options = elgg_extract('options', $vars, []) | |
$normalize_options | |
$value = is_array($vars['value']) ? $vars['value'] : [$vars['value']] | |
$vars ['multiple'] = !empty($vars['multiple']) | |
if($vars['multiple']&&!empty($vars['name'])&&is_string($vars['name'])) | $render_option |
$options_list = '' | |
foreach ($options_values as $option) | |
$defaults |
Definition at line 27 of file select.php.
$normalize_options |
Definition at line 58 of file select.php.
$options = elgg_extract('options', $vars, []) |
Definition at line 36 of file select.php.
$options_list = '' |
Definition at line 114 of file select.php.
$options_values = [] |
Definition at line 33 of file select.php.
Definition at line 93 of file select.php.
Definition at line 80 of file select.php.
$vars = elgg_extract_class($vars, ['elgg-input-select']) |
Elgg select input Displays a select input field.
$vars['value'] The current value or an array of current values if multiple is true $vars['options'] An array of strings or arrays representing the options for the dropdown field. If an array is passed, the "text" key is used as its text, all other elements in the array are used as attributes. $vars['options_values'] An associative array of "value" => "option" where "value" is the name and "option" is the value displayed on the button. Replaces $vars['options'] when defined. When "option" is passed as an array, the same behaviour is used as when the $vars['options'] is passed an array to. If the array contains an array of 'options' an optgroup will be drawn with 'label' as the optgroup label. $vars['multiple'] If true, multiselect of values will be allowed in the select box $vars['class'] Additional CSS class
Definition at line 25 of file select.php.
$vars['multiple'] = !empty($vars['multiple']) |
Definition at line 84 of file select.php.
foreach($options_values as $option) |
Definition at line 116 of file select.php.