extjs-添加对应的组件
2017-08-16 13:54
260 查看
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) {
}
}
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中grid改变行颜色及动态添加组件
- extjs组件添加事件监听的三种方式
- ExtJS里的Xtype的对应组件
- Extjs中Combo组件添加tooltip
- ExtJS 学习笔记 示例2-在组件中添加子组件,并操作子组件
- Extjs中为RadioGroup组件添加监听事件,来控制另一个组件是否显示
- [转]extjs组件添加事件监听的三种方式
- C# Controls 添加组件、遍历组件、判断组件名以及为相应组件添加对应函数
- extjs组件添加事件监听的三种方式 http://blog.sina.com.cn/s/blog_48d7f92901011cfn.html
- extjs组件添加事件监听的三种方式
- ExtJs 中 xtype 与组件类的对应表
- ExtJs 中 xtype 与组件类的对应表
- ExtJs动态添加组件
- ExtJs 中 xtype 与组件类的对应表与vtype
- ExtJs 通过按钮动态添加组件
- ExtJS 4.2 Date组件扩展:添加清除按钮
- ExtJs 中 xtype 与组件类的对应表
- extjs组件添加事件监听的三种方式
- ExtJs 动态添加组件