extjs中grid的内容能够复制

Ext.define('TerminalInfoApp.view.TerminalInfoListView' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.terminalInfoListView',
    id:'terminalInfoListViewGrid',
            title: '设备信息列表',
            autoWidth: true,
            autoHeight : true,
            region: "center",
            border: true,
            frame: true,
            store: "TerminalInfoListStore",
            multiSelect: true,
            viewConfig : {enableTextSelection:true},//grid中的内容能够复制  extjs4.0版本以上 这是第一种方法
//            plugins: [
//            Ext.create('Ext.grid.plugin.CellEditing', {
//            clicksToEdit: 1
//            })
//            ],//这是第二种方法
            stripeRows:true//表格是否隔行换色,默认为false
            loadMask:true,   //是否在加载数据时显示遮罩效果,默认为false
            selModel: { selType: 'checkboxmodel' }, //在首列實現checkbox,僅此在首列
            columns: [
            { header: '序号', xtype:'rownumberer',width:50},
            { header: 'ID', flex: 0.5, dataIndex: 'id', hidden: true},
            { header: 'userid', flex: 0.5, dataIndex: 'userid', hidden: true },
            { header: '批号id', width:120, dataIndex: 'bitchnum', hidden: true},
            { header: '批号', width:120, dataIndex: 'purchno', sortable: true },
            { header: '设备编号', width:100, dataIndex: 'terminal', sortable: true 
//            ,editor: {xtype:'displayfield',allowBlank:false}
            },
            { header: '车牌号码', width:100, dataIndex: 'carnumber', hidden: true },
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值