View Full Version : Display text next to image in ActionColumn?

14 Oct 2010, 8:24 AM
Is there a way to display the record value next to the image in an ActionColumn?

14 Oct 2010, 10:18 AM
It does not use a dataIndex. But it will use a configured renderer to create the initial cell content, so

renderer: function(v, m, rec) {
return rec.get('theFieldYouWant');

You'll have to tweak the CSS.

14 Oct 2010, 12:31 PM
I added the renderer code and the text ended up on the left side of the image and at the bottom of the grid cell.

I want the text on the right side of image with a bit of space between the image and the start of text. Is it possible to change the order with a CSS tweak?

14 Oct 2010, 9:14 PM
You'll have to create a subclass who's renderer member function calls the superclass render, and then appends to the result of that.