ext6.2如何在grid表格列里加button按钮
2017-11-13 17:48
465 查看
一个列里如何放置2个button 见上图 用widgetcolumn组件 手册例子默认只能放一个 我用的panel放的2个小组件button
xtype: 'widgetcolumn', flex: 1, text:'操作', widget: { xtype: 'panel', items: [{ xtype: 'button', text: '添加' }, { xtype: 'button', style:'background:red', text: '删除' }] }
下面一种是grid列里放置button 显示为图标 使用actioncolumn组件
代码如下
xtype : 'actioncolumn', text : '操作', width : 200, tdCls : 'action', items : [ { xtype : 'button', text : '应急事件详细信息', flex : 1, tooltip : '应急事件详细信息', } , { xtype : 'button', text : "编辑", iconCls : 'x-fa fa-pencil fa-lg', // building-o tooltip : '编辑', handler : 'onUpdate' }, { iconCls : 'x-fa fa-remove', tooltip : '删除', handler : 'onDel' } ]
相关文章推荐
- EXT中单击button按钮grid添加一行(光标位置可设置)的实例代码
- EXT中单击button按钮grid添加一行(光标位置可设置)的实例代码
- Ext.Button的禁用 extjs 获取一个panel 如何禁用bbar中的按钮 或者将它隐藏掉??
- Ext.Button的禁用 extjs 获取一个panel 如何禁用bbar中的按钮 或者将它隐藏掉??
- 解决 ext中grid添加按钮列,如何进行动作响应,以及如何同步调用ext内部组件
- ext grid 中插入单选按钮
- html5如何创建按钮button
- 表格视图——Ext.grid.GridView
- Ext.grid.ColumnModel——给表格加行号
- ExtJs4 笔记(5) Ext.Button 按钮
- [转载]ExtJs4 笔记(5) Ext.Button 按钮
- ext6 如何把grid表格的多个数据用json数组传到后台
- EXT-表格GridPanel
- QT中如何给表格添加按钮
- Ext.grid.Panel表格分页
- Ext.grid.feature.Grouping页头分组如何显示其他信息
- ExtJs4 笔记(5) Ext.Button 按钮
- 如何点击服务器Button按钮后变为不可点
- Extjs-表格 Ext.grid.GridPanel 分页------------------------------------------------
- Flex中如何通过showCloseButton属性控制TitleWindow右上角关闭按钮有效/无效的例子