extjs-添加对应的组件
来源:互联网 发布:淘宝活动第三方平台 编辑:程序博客网 时间:2024/05/29 19:23
1.添加按钮:
margin: '10 20 0 80',
xtype: 'button',
text: '搜索',
width: 80,
itemId:'queryItemId',
// enableToggle:true,
handler:dciGlobeCoordinate.StartQuery
2.添加文本框:
xtype: 'textfield',
margin: '10 0 0 5',
fieldLabel: 'x坐标',
editable: false,
width: 220,
labelWidth: 40,
allowBlank:false, //不允许为空
blankText: '请输入x坐标',
regex:/^\d+(\.\d{1,20})?$/,//允许出现小数点后20位
regexText: '请输入数字',
shadow: false,
listeners: {
change:function (textfield, value) {
}
}
添加时间field
xtype: 'datefield',
margin: '3 0 0 5',
itemId:'dateItemId',
fieldLabel: '日期',
minDate:'1/1/1800',
format: 'Y/m/d',
invalidText: '日期格式无效',
editable: false,
width: 235,
labelWidth: 60,
shadow:false,
listeners: {
//'change':'onAnalysisParamChange'
}
添加数字field
xtype: 'timefield',
margin: '3 0 0 5',
itemId:'timeItemId',
fieldLabel: '时间',
invalidText: '时间格式无效',
format: 'H:i:s',
increment: 30,
editable: false,
width: 235,
labelWidth: 60,
shadow: false,
listeners: {
//'change':'onAnalysisParamChange'
}
3.添加checkbox
xtype: 'checkbox',
//padding:10,
margins:'0 0 0 10',
itemId:'openUndergroundModeItemId',
//bind: {
// checked: '{isCirculation}'
//},
checked:true,
boxLabel: '地下模式',
handler:dciGlobeUnderGround.openUndergroundMode
4.添加进度条
xtype:'slider',
itemId:'sliderId',
margin:'10 5 10 5',
fieldLabel: '透明度',
minvalue:0,
maxvalue:255,
width:211,
labelWidth: 60,
shadow:false,
listeners:{
'change': function (slider, value) {
}
}
- extjs-添加对应的组件
- ExtJs 中 xtype 与组件类的对应表
- ExtJs 中 xtype 与组件类的对应表
- ExtJs 动态添加组件
- ExtJs添加天气组件
- extjs组件添加事件监听的三种方式
- extjs组件添加事件监听的三种方式
- extjs组件添加事件监听的三种方式
- extjs组件添加事件监听的三种方式
- ExtJs 中 xtype 与组件类的对应表与vtype
- Extjs组件的生命周期
- Extjs组件的生命周期
- extjs 的 spinner 组件
- Extjs组件的生命周期
- Extjs组件的生命周期
- Extjs的组件介绍
- Extjs组件的操作
- Extjs组件的生命周期
- uva 10655 Contemplation! Algebra(矩阵快速幂)
- centos7.2 安装poco
- CE6870 添加ipv6 策略路由失败问题解决
- 2017-8-16考试题
- 调用第三方接口~支付宝
- extjs-添加对应的组件
- [编程题] 独立的小易
- C++入门(作为大概了解)
- python 循环
- iOS NSdata 与 NSString,Byte数组,UIImage 的相互转换
- 一个继承JFrame的类调用一个继承JPanel的类,继承JPanel中的定义JPanel不显示
- PHP之static静态变量
- RIP颜色混合算法
- 4.Redis的数据库