请参阅帮助文档:actioncolumn
Ext.create('Ext.data.Store',{ STOREID:'employeeStore',字段:['名字','姓氏','senority“,”环保署署长“,”聘请'],数据:[ {姓:“迈克尔”,名字:“斯科特”}, {姓:“德怀特”,姓“的Schrute”}, {姓:“吉姆”,名字:“哈尔佩特”}, BR /> {姓:“凯文”,名字:“马龙”}, {姓:“安吉拉”,名字:“马丁”} ] }); Ext.create('Ext.grid.Panel',{标题:“操作栏演示”,店:Ext.data.StoreManager.lookup('employeeStore'),栏目:[ {文字:'名字',dataIndex:'名字'}, {文字:'姓',dataIndex:'姓'}, {的xtype:'actioncolumn',宽度:50,项目:[{图标:'EXTJS /例子/共享/图标/ FAM / cog_edit.png',/ /?使用的图标配置提示的URL:“编辑”,处理程序:功能(网格和rowIndex,colIndex){变种市盈率= grid.getStore()getAt(rowsource属性); BR />警报(“编辑”+ rec.get('名字')); } },{图标:'EXTJS /例子/宁静/影像/ delete.png ',提示:“删除”,处理程序:函数(网格和rowIndex,colIndex){变种市盈率= grid.getStore()getAt(rowsource属性); 警报( “终止”+ rec.get('名字')); } }] ],宽度:250, renderTo :Ext.getBody()});