1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0//EN">
6 <style type=
"text/css">
9 font-family: verdana
, sans-serif
;
29 text-decoration:underline
;
34 text-decoration: none
;
47 border-bottom-width:1px;
48 border-bottom-style:dotted
;
64 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
67 <big><tt>Global.helma.Html.prototype.dropDownAsString
(attr,
options,
selectedValue,
firstOption)
</tt></big><br>
73 Returns a rendered x/html drop down select box
<br><br>
76 <li><b>Parameter
</b> <code>{Object}
</code>:
<br/>
77 param An object containing the tag attributes
<li><b>Parameter
</b> <code>{Array}
</code>:
<br/>
78 options Either an array of strings, an array with several
<code>{value: v, display: d}
</code> objects, or a collection of
<code>[
"value",
"display"]
</code> arrays in an array
<li><b>Parameter
</b> <code>{String}
</code>:
<br/>
79 selectedValue The value to pre-select
<li><b>Parameter
</b> <code>{String}
</code>:
<br/>
80 firstOption An optional first option to display in the select box (this option will always have no value)
81 <li><b>Returns
</b><br>
82 The rendered drop down select box
85 <li><b>See also
</b><br>
95 <table width=
"90%" border=
"0" cellspacing=
"1" cellpadding=
"5">
97 <td>Sourcecode in /root/helma-
1.6.1/modules/helma/Html.js:
98 <pre><font color=
"#aaaaaa">523:
</font> helma.Html.prototype.dropDownAsString = function(attr, options, selectedValue, firstOption) {
99 <font color=
"#aaaaaa">524:
</font> res.push();
100 <font color=
"#aaaaaa">525:
</font> this.dropDown(attr, options, selectedValue, firstOption);
101 <font color=
"#aaaaaa">526:
</font> return res.pop();
102 <font color=
"#aaaaaa">527:
</font> }