Roo/bootstrap/Table.js
authorEdward <edward@roojs.com>
Thu, 10 Jul 2014 04:45:51 +0000 (12:45 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Jul 2014 04:45:51 +0000 (12:45 +0800)
Roo/bootstrap/Table.js

index 070e616..3cd975c 100644 (file)
@@ -213,8 +213,13 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         
         for(var i = 0, len = cm.getColumnCount(); i < len; i++){
             cls = 'glyphicon';
+            
             config = cm.config[i];
             
+            if(typeof(config.dataIndex) != 'undefined'){
+                cls += ' ' + config.dataIndex;
+            }
+            
             if(typeof(config.sortable) != 'undefined' && config.sortable){
                 cls += ' sortable';
             }