Wiki source code of WORadioButtonList
Version 9.1 by Klaus Berkling on 2012/03/03 17:36
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == == | ||
2 | |||
3 | == Introduction == | ||
4 | |||
5 | WORadioButtonList displays a list of radio buttons. The user can make a selection that is then returned selection object. | ||
6 | |||
7 | == Usage == | ||
8 | |||
9 | In the WOD File: | ||
10 | |||
11 | {{code}} | ||
12 | |||
13 | WORadioButtonList { | ||
14 | list = ObjectsList; | ||
15 | item = ObjectItemInList; | ||
16 | displayString = ObjectItemInList.displayString; | ||
17 | [value = valueOfInputTag;] | ||
18 | [index = ObjectListIndex;] | ||
19 | [prefix = prefixHTMLString;] | ||
20 | [suffix = suffixHTMLString;] | ||
21 | [selection = selectedObjectInList;] | ||
22 | [name = aName;] | ||
23 | [disabled = disabledList;] | ||
24 | [escapeHTML = renderDisplayStringAsHTML;] | ||
25 | } | ||
26 | |||
27 | {{/code}} | ||
28 | |||
29 | == {{color value="#000000"}}Bindings{{/color}} == | ||
30 | |||
31 | Note: Use a string in displayString that is part of the item object, if there is no displayString then the value is used as the label for the radio button. | ||
32 | |||
33 | |= Key |= Value | ||
34 | | list | An array of objects | ||
35 | | item | An element from the list array | ||
36 | | displayString | A string used as the label for the radio button. If there is no displayString the value is used | ||
37 | | value | The value in INPUT TYPE="radio" VAUE="aValue" | ||
38 | | index | Index of the current integration of the list array | ||
39 | | prefix | HTML prefix to the displayString | ||
40 | | suffix | HTML suffix to the displayString | ||
41 | | selection | The selected object from the list array | ||
42 | | name | The name in INPUT tag | ||
43 | | disabled | If true then the radio button is disabled | ||
44 | | escapeHTML | Rendered the displayString as HTML |