JHtmlSelect::suggestionlist
Method to build a list with suggestions
Signature
public function suggestionlist(array
$data,
[string
$optKey = 'value',
[string
$optText = 'text',
[mixed
$idtag = false,
[boolean
$translate = false]]]] )
Parameters
-
$data
- An array of objects, arrays, or values.
-
$optKey
- The name of the object variable for the option value. If
-
$optText
- The name of the object variable for the option text.
-
$idtag
- Value of the field id or null by default
-
$translate
- True to translate
Returns
- string
- HTML for the select list