Ext.define('uas.view.grid.rowManager.Panel', { extend: 'Ext.grid.Panel', xtype: 'row-manager', controller: 'row-manager', requires: [ 'Ext.grid.plugin.CellEditing', 'Ext.ux.grid.plugin.MenuClipboard' ], plugins: [{ ptype: 'menuclipboard' }, { ptype: 'cellediting', clicksToEdit: 1, }], columns: [{ xtype: 'rownumberer' }, { text: '姓名', dataIndex: 'name', editor: { xtype: 'textfield' } }, { text: '邮箱', dataIndex: 'email', width: 260, editor: { xtype: 'textfield' } }, { text: '电话', dataIndex: 'phone', width: 180, editor: { xtype: 'numberfield' } }], store: { type: 'row-manager', data: [{ name: 'lucy', email: 'lucy@shee.com', phone: '83141231' }] }, tbar: [{ text: '添加行', handler: 'onRowAdd' }, { text: '插入行', handler: 'onRowInsert' }, { text: '删除行', handler: 'onRowRemove' }] });