Radiogroup"

From Documentation
Line 53: Line 53:
 
| 5.0
 
| 5.0
 
| Radiogroup and selection
 
| Radiogroup and selection
| [http://www.zkoss.org/forum/listComment/12148]
+
| [http://www.zkoss.org/forum/listComment/12148 http://www.zkoss.org/forum/listComment/12148]
 
|-
 
|-
 
| 5.0
 
| 5.0
 
| Radiogroup, data binding and TypeConverter
 
| Radiogroup, data binding and TypeConverter
| [http://www.zkoss.org/forum/listComment/7011]
+
| [http://www.zkoss.org/forum/listComment/7011 http://www.zkoss.org/forum/listComment/7011]
 
|}
 
|}
  

Revision as of 23:07, 2 May 2010

Radiogroup

Employment/Purpose

Used to group multiple radio buttons. In one radiogroup. Only one radio button may be selected at a time.

Example

Radio.png

<window title="Radiobox &amp; Radio Demo">
	<vbox>
		<radiogroup onCheck="fruit.value = self.selectedItem.label">
			<radio label="Apple" />
			<radio label="Orange" />
			<radio label="Banana" />
		</radiogroup>
		You have selected :
		<label id="fruit" style="color:red" />
	</vbox>
</window>

Note: To support the versatile layout, a radio group accepts any kind of children , including Radio. On the other hand, the parent of a radio, if any, must be a radio group.



Supported events

Name
Event Type
None None

Supported Children

*ALL

Use cases

Version Description Example Location
5.0 Radiogroup and selection http://www.zkoss.org/forum/listComment/12148
5.0 Radiogroup, data binding and TypeConverter http://www.zkoss.org/forum/listComment/7011

Version History

Version Date Content
5.0.1 4/30/2010 Initialization



Last Update : 2010/05/02

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.