JHtmlSelect::groupedlist
Generates a grouped HTML selection list from nested arrays.
Signature
public function groupedlist(array
$data,
string
$name,
array
$optionsĀ )
Parameters
-
$data
- An array of groups, each of which is an array of options.
-
$name
- The value of the HTML name attribute
-
$options
- Options, an array of key/value pairs. Valid options are:
Returns
- string
- HTML for the select list
Errors/Exceptions
-
RuntimeException
- If a group has contents that cannot be processed.