Pman.Tab.AdminTranslations.bjs
authorEdward <edward@roojs.com>
Tue, 25 Feb 2014 09:11:36 +0000 (17:11 +0800)
committerEdward <edward@roojs.com>
Tue, 25 Feb 2014 09:11:36 +0000 (17:11 +0800)
Pman.Tab.AdminTranslations.js

Pman.Tab.AdminTranslations.bjs
Pman.Tab.AdminTranslations.js

index 975df3c..7b0b1b3 100644 (file)
                                             "header": "Active?",
                                             "width": 150,
                                             "xtype": "ColumnModel",
-                                            "|renderer": "function(v) { return String.format('{0}', v); }",
+                                            "|renderer": "function(v,x,r) { \n\n    return '<img class=\"x-grid-check-icon' + (v*1 ? '-checked' : '')  + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n                                        \n    \n}",
                                             "|xns": "Roo.grid"
                                         }
                                     ]
index ee96ac9..99cce9e 100644 (file)
@@ -613,7 +613,12 @@ Pman.Tab.AdminTranslations = new Roo.XComponent({
                                     dataIndex : 'is_active',
                                     header : 'Active?',
                                     width : 150,
-                                    renderer : function(v) { return String.format('{0}', v); }
+                                    renderer : function(v,x,r) { 
+                                    
+                                        return '<img class="x-grid-check-icon' + (v*1 ? '-checked' : '')  + '" src="' + Roo.BLANK_IMAGE_URL + '"/>';
+                                                                            
+                                        
+                                    }
                                 }
                             ]
                         }