ExtJS4 Toolbar添加与事件监听
2016-08-16 10:18
204 查看
效果图:
Ext.define('V5.cxb.view.MainView', {
extend : 'Ext.Panel',
columnLines : true,
xtype : 'mainview',
tbar : [{
width:100,
text : '首页'
}, {
xtype : 'splitbutton',
width:100,
text : '审计项目',
menu:{
items:[{
//xtype:'button',
text:'项目立项',
handler:function(){alert(213)}
},{
//xtype:'button',
text:'我的项目'
},{
//xtype:'button',
text:'项目查询'
},{
//xtype:'button',
text:'文档搜索'
},{
//xtype:'button',
text:'项目进展'
},{
//xtype:'button',
text:'流程项目'
}]
}
}, {
width:100,
xtype : 'splitbutton',
text : '公文管理'
}, {
width:100,
xtype : 'splitbutton',
text : '工作管理'
}, {
width:100,
xtype : 'splitbutton',
text : '任务管理'
}, {
width:100,
xtype : 'splitbutton',
text : '计划管理'
}, {
width:100,
xtype : 'splitbutton',
text : '审计文书'
}, {
width:100,
xtype : 'splitbutton',
text : '综合信息管理'
}]
})
Ext.define('V5.cxb.view.MainView', {
extend : 'Ext.Panel',
columnLines : true,
xtype : 'mainview',
tbar : [{
width:100,
text : '首页'
}, {
xtype : 'splitbutton',
width:100,
text : '审计项目',
menu:{
items:[{
//xtype:'button',
text:'项目立项',
handler:function(){alert(213)}
},{
//xtype:'button',
text:'我的项目'
},{
//xtype:'button',
text:'项目查询'
},{
//xtype:'button',
text:'文档搜索'
},{
//xtype:'button',
text:'项目进展'
},{
//xtype:'button',
text:'流程项目'
}]
}
}, {
width:100,
xtype : 'splitbutton',
text : '公文管理'
}, {
width:100,
xtype : 'splitbutton',
text : '工作管理'
}, {
width:100,
xtype : 'splitbutton',
text : '任务管理'
}, {
width:100,
xtype : 'splitbutton',
text : '计划管理'
}, {
width:100,
xtype : 'splitbutton',
text : '审计文书'
}, {
width:100,
xtype : 'splitbutton',
text : '综合信息管理'
}]
})
相关文章推荐
- EXT textfield 输入框添加键盘监听事件
- Android 在XML文件中添加View点击事件的监听:OnClickListener
- 向AppWidget中添加button监听事件
- android:动态创建多个按钮 并给每个按键添加监听事件
- android监听事件添加动作的三种方式
- JTextField添加回车事件监听
- javascript兼容添加与删除事件监听
- vbox等控件添加滚动条滚动事件的监听函数
- JS 添加/删除事件监听
- 【Android开发学习30】动态创建多个按钮,并给每个按键添加监听事件
- 给Android的音量按钮添加监听事件
- 关于MapControl和Map添加事件监听无效的问题
- js 下拉框添加监听事件和js中删除一个对象
- GLSurfaceView中添加button并监听click事件
- 给Android的音量按钮添加监听事件
- Java中JFrame添加全局键盘监听事件
- extjs组件添加事件监听的三种方式
- Extjs4 Treepanel中添加右击事件
- 如何为js控件添加事件监听
- JS添加/绑定事件监听函数并传参数attachEvent和addEventListener兼容个浏览器