extjs4.2 - actioncolumn xtype column header is showing Actions in column hide/show list -
in ext js grid, column xtype: actioncolumn, column header not showing in show/hide column list. comes 'actions' default actioncolumn column. can override actual column header in list of columns show/hide actioncolumn columns? image shows screenshow of examples sencha examples.
if want change label in columns, need use config called menutext
actioncolumn
example: (https://fiddle.sencha.com/#fiddle/1944)
{ xtype:'actioncolumn', width:50, menutext: 'my actions', items: [{ icon: 'extjs-build/examples/shared/icons/fam/cog_edit.png', // use url in icon config tooltip: 'edit', handler: function(grid, rowindex, colindex) { var rec = grid.getstore().getat(rowindex); alert("edit " + rec.get('firstname')); } },{ icon: 'extjs-build/examples/restful/images/delete.png', tooltip: 'delete', handler: function(grid, rowindex, colindex) { var rec = grid.getstore().getat(rowindex); alert("terminate " + rec.get('firstname')); } }] }
Comments
Post a Comment