Sunday, April 29, 2012

Rendering an Image in Extjs gridPanel

 xtype:'actioncolumn' can be defined in a column.
 icon : Provide the url for the image.
 You can add tooltip and style to it. 
 
 
columns: [ 
                        {
                            xtype:'actioncolumn',
                            header: "Action",
                            width:55,
                            items: [{
                                        icon:'{!$Resource.Images}/Image.png',
                                        tooltip: 'Configure Kit',
                                        id:'ImageId',
                                        style: {
                                            marginLeft: '5px'
                                        },
                                                                                
                                    }                                    
                            ] 
                         }
] 

No comments:

Post a Comment