Roo/bootstrap/Table.js
authoredward <edward@roojs.com>
Tue, 29 May 2018 04:09:25 +0000 (12:09 +0800)
committeredward <edward@roojs.com>
Tue, 29 May 2018 04:09:25 +0000 (12:09 +0800)
Roo/bootstrap/Table.js

index 1b15d5b..1838da4 100644 (file)
@@ -1122,6 +1122,17 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
             }
             
         }
+    },
+    
+    onHeaderChange : function()
+    {
+        this.updateHeaders.apply(this, arguments);
+    }, 
+    
+    updateHeaders : function()
+    {
+        var html = this.renderHeader();
+        this.mainHead.update(html);
     }
 });