OpenWGA 7.10 - WebTML reference

WebTML tags » input

<tml:input labeled ="true | false | wrap">

Purpose:

Wraps the option titles of type="checkbox|radio" inside HTML label tags

Description:

This attribute is only valid on input type "checkbox" or "radio".

Setting this attribute to "true" will let OpenWGA wrap the titles of options for this input into the HTML tag <label for=...> using auto generated id-s. This has the benefit that the browser "knows" that the title is related to the checkbox/radio button and can offer adequate functionality. Most browsers will now allow clicking the label to check/mark the button.

<input type="checkbox" name="..." id="4711"><label for="4711">some value</label>

Setting this attrbute to "wrap" will wrap the complete <input> tag with <label></label>:

<label>
<input type="radio" name="...">
</label>

A benefit of using this attribute is that the contents of the label tag can be styled using CSS stylesheets.

Value(s):

true: Enable output of HTML label tags for titles

wrap: Enables label wrapping

false: No label output

Default value:

false