View Full Version : add text to the actioncolumn item

31 Mar 2014, 5:50 AM
I want to add text to the actioncolumn with icon, is it possible

text: '11',
xtype: 'actioncolumn',
flex: 1,
menuDisabled: true,
items : [
icon: '../extjs/resources/themes/images/default/dd/drop-add.gif',
// add some text here
handler : function (grid, rowIndex, colIndex, item, e, record) {
//do your delete record function here

2 Apr 2014, 12:13 PM
A very simple and lightweight option would be to render a button's html in a column: https://fiddle.sencha.com/#fiddle/4o0
Note that this approach works only if the column position's are fixed (since the listener relies in the column index).

You could also use an XTemplate to render an actual button component (in case you want the columns to be re-orderable).

Ext 5.0 will introduce a Widget Grid that allows this in a seamless way. Stay tuned for the public beta! :)