Global.helma.Html.checkBox (param)
render an x/html checkbox input element

  • Parameter Object:
    the element's attributes
Sourcecode in /home/hannes/helma/modules/helma/Html.js:
282:   this.checkBox = function(param) {
283:           if (!param) {
284:               res.write("[Html.checkBox: insufficient arguments]");
285:               return;
286:           }
287:           var attr = Object.clone(param);
288:           attr.type = "checkbox";
289:           if (attr.selectedValue != null) {
290:               if (isSelected(param.value, param.selectedValue))
291:                  attr.checked = "checked";
292:              else
293:                  delete attr.checked;
294:              delete attr.selectedValue;
295:          }
296:          self.tag("input", attr);
297:          return;
298:      }