ext增加一个弹窗,里面有几个单选框。
问题描述:
{
iconCls:"item-false",
id:"unCheckButton",
text:"认证不通过",
handler:function(btn){
//就在这里面增加一个弹窗,弹窗里面有几个单选框
ast.feiliao91.admin.certification.updateStatus(3);
}
答
var form = Ext.form.FormPanel
({
autoWidth:true,
frame:true,
layout:'form',
items:
[{
xtype:'radiogroup',
id:'job',
hideLabels: false,
name:'job',
layout:'hbox',
fieldLabel:' 类型选择',
defaults: {flex: 1},
items:[
{boxLabel: '项目', name: 'job', inputValue: '1'},
{boxLabel: '非项目', name: 'job', inputValue: '0', checked: true}
],
}]
});
new Ext.Window
({
title:'弹出框',
itmes:from,
buttons:
[{
text:'保存',
},
{
text:'取消'
}]
}).show();
答
Ext用Dialog呀!直接给个url地址 弹出页面
var diag = new Dialog();
diag.Width =400;
diag.Height = 350;
diag.Title = "新增单位处警";
diag.URL = "url地址”;
diag.OKEvent = function(){
diag.innerWin["doSaveYPreplanDep"]();//点击确定执行的方法
}
diag.show();