Extjs学习之 form.radio

 1 Ext.onReady(function(){
 2     Ext.QuickTips.init();
 3     var myfrm = new Ext.FormPanel({
 4         frame:true,
 5         title:"Radio例子",
 6         width:330,
 7         renderTo:Ext.getBody(),
 8         items:[{
 9             xtype:"radiogroup",
10             layout:"column",
11             fieldLabel:'性别',
12             items:[{
13                 columnWidth:.5,
14                 xtype:'radio',
15                 boxLabel:"男",
16                 inputValue:0,
17                 checked:true,
18                 name:'sex'
19             },{
20                 columnWidth:.5,
21                 xtype:'radio',
22                 boxLabel:"女",
23                 inputValue:"1",
24                 name:'sex'
25             }]
26         }]
27     })
28 });

ExtJs Radio

posted @ 2013-01-10 22:36  psy5choit  阅读(165)  评论(0)    收藏  举报