Radio"

From Documentation
m
Line 65: Line 65:
 
! Version !! Description !! Example Location
 
! Version !! Description !! Example Location
 
|-
 
|-
| 3.6+
+
| 3.6
 
| Radio buttons with Listitems
 
| Radio buttons with Listitems
 
| [http://www.zkoss.org/forum/listComment/3867 http://www.zkoss.org/forum/listComment/3867]
 
| [http://www.zkoss.org/forum/listComment/3867 http://www.zkoss.org/forum/listComment/3867]
 
|-
 
|-
| 3.6+
+
| 3.6
 
| Radiogroup radio's in seperate table/grid rows
 
| Radiogroup radio's in seperate table/grid rows
 
| [http://www.zkoss.org/forum/listComment/9002 http://www.zkoss.org/forum/listComment/9002]
 
| [http://www.zkoss.org/forum/listComment/9002 http://www.zkoss.org/forum/listComment/9002]
Line 81: Line 81:
 
! Version !! Date !! Content
 
! Version !! Date !! Content
 
|-
 
|-
| 5.0.1
+
| 5.0.2
 
| 4/27/2010
 
| 4/27/2010
 
| Initialization
 
| Initialization

Revision as of 02:53, 14 May 2010

Radio

Employment/Purpose

A radio button is a component that can be turned on and off. Radio buttons are grouped together in a group, called radiogroup. Only one radio button with the same group may be selected at a time.

Example

ZKComRef 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>

Supported events

Name
Event Type
onFocus
Event


Description: Denotes when a component gets the focus.

onBlur
Event


Description: Denotes when a component loses the focus.

onCheck
CheckEvent

Description: Denotes when a component loses the focus.

Supported Children

*NONE

Use cases

Version Description Example Location
3.6 Radio buttons with Listitems http://www.zkoss.org/forum/listComment/3867
3.6 Radiogroup radio's in seperate table/grid rows http://www.zkoss.org/forum/listComment/9002

See also: Radiogroup

Version History

Version Date Content
5.0.2 4/27/2010 Initialization



Last Update : 2010/05/14

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