radio

function stepOne()
{

var formPanel = Ext.create('Ext.form.Panel', {
id:'form',
bodyPadding: 5,
fieldDefaults:
{
labelAlign: 'left',
labelWidth: 100,
anchor: '100%'
},
items: [
{
id:'radio1',
xtype: 'radiofield',
name: 'create_from',
inputValue: 1,
boxLabel: 'Quick Launch From Tempalte'
},
{
xtype: 'textareafield',
width: 500,
value:'Quick Launch From Tempalte explain'
},
{
id:'radio2',
xtype: 'radiofield',
name: 'create_from',
inputValue: 2,
fieldLabel: '',
labelSeparator: '',
boxLabel: 'Quick Launch From Image'
},
{
xtype: 'textareafield',
width: 500,
value:'Quick Launch From Image explain'
},
{
id:'radio3',
xtype: 'radiofield',
name: 'create_from',
inputValue: 3,
fieldLabel: '',
labelSeparator: '',
boxLabel: 'Quick Launch From User'
},
{
xtype: 'textareafield',
width: 500,
value:'Quick Launch From User explain'
},
{
xtype: 'button',
columnWidth:.1,
formBind: true,
disabled: true,
text: 'Net Step',
width: 120,
handler: function()
{
var form = this.up('form').getForm();
var radio1 = Ext.getCmp('radio1');
var craeteFrom = radio1.getGroupValue();//radio取已经选中的值
if (null == craeteFrom)
{
Ext.Msg.alert('one step','please choose the launch way');
}else{
stepTwo();
}
}
}
]
});

var win = Ext.widget('window', {
title: 'Launch Instance',
closeAction: 'hide',
layout: 'fit',
resizable: true,
modal: true,
items: formPanel
});

win.show();

}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值