Difference between revisions of "JHtmlSelect::optgroup"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Create a placeholder for an option group. | Create a placeholder for an option group. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function optgroup ( | public static function optgroup ( | ||
Line 42: | Line 40: | ||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JHtmlSelect::optgroup source code''' on [[jplatform:html/html/select.php#cl-337|BitBucket]] | * {{JVer|11.1}} '''JHtmlSelect::optgroup source code''' on [[jplatform:html/html/select.php#cl-337|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JHtmlSelect | + | * {{JVer|11.1}} Class [[API17:JHtmlSelect|JHtmlSelect]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Html | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Html|Html]] |
− | * [[JHtmlSelect::optgroup|Other versions of JHtmlSelect::optgroup]] | + | * [[API17:JHtmlSelect::optgroup|Other versions of JHtmlSelect::optgroup]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JHtmlSelect::optgroup | category=JHtmlSelect::optgroup | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 60: | Line 56: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:13, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JHtmlSelect::optgroup[edit]
Description[edit]
Create a placeholder for an option group.
public static function optgroup (
$text
$optKey= 'value'
$optText= 'text'
)
Parameter | Type | Default | Description |
---|---|---|---|
$text | string | The text for the option | |
$optKey | string | 'value' | The returned object property name for the value |
$optText | string | 'text' | The returned object property name for the text |
- Returns object
- Defined on line 345 of libraries/joomla/html/html/select.php
See also[edit]
- JHtmlSelect::optgroup source code on BitBucket
- Class JHtmlSelect
- Subpackage Html
- Other versions of JHtmlSelect::optgroup
User contributed notes[edit]
Code Examples[edit]