mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
update docs for optgroup output
This commit is contained in:
@@ -3154,14 +3154,12 @@ You must supply a <b>state</b>.
|
|||||||
</tgroup>
|
</tgroup>
|
||||||
</informaltable>
|
</informaltable>
|
||||||
<para>
|
<para>
|
||||||
html_options is a custom function that creates html option
|
html_options is a custom function that creates html option lists
|
||||||
lists with provided data. It takes care of which item is
|
with provided data. It takes care of which item is selected by
|
||||||
selected by default as well. Required attributes are values
|
default as well. Required attributes are values and output, unless
|
||||||
and output, unless you use options instead.
|
you use options instead. If a given value is an array, it will
|
||||||
</para>
|
treat it as an html OPTGROUP, and display the groups. Recursion is
|
||||||
<para>
|
supported with OPTGROUP. All output is xhtml compatible.
|
||||||
NOTE: As of Smarty 1.4.5, html_options now outputs xhtml compatible
|
|
||||||
code.
|
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>html_options</title>
|
<title>html_options</title>
|
||||||
|
Reference in New Issue
Block a user