jmSelect
The jmSelect function is used for creating a <select> form element in a Jamroom Control Panel form.
form.tpl element name: form_select
bool
jmSelect
(string $text, string $name, array $data, [string $selected = ''], [string $help = ''], [string $javascript = ''], [string $style = false], [array $_actions = false], [string $sub_title = false])
-
string
$text: Title for form field - i.e. the string to the left in the Control Panel
-
string
$name: Form field "name" value
-
array
$data: Array containing key => value pairs for use as the <options> in the select form. This can also be a fully pathed filename containing key|value pairs, one per line.
-
string
$selected: Option that will be selected on form load (i.e. existing or default value)
-
string
$help: Help Text for the form field
-
string
$javascript: Javascript that will be added into the <select> tag
-
string
$style: Inline CSS style that will be added into the <select> tag
-
array
$_actions: Additional form elements ("actions") that will appear below the input form field
-
string
$sub_title: Sub Title that will appear under the title
|