Roo/bootstrap/Table.js
authorAlan Knowles <alan@roojs.com>
Fri, 9 Jul 2021 06:30:52 +0000 (14:30 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 9 Jul 2021 06:30:52 +0000 (14:30 +0800)
Roo/bootstrap/Table.js

index d621928..fd5ef13 100644 (file)
@@ -1158,6 +1158,12 @@ Roo.extend(Roo.bootstrap.Table, Roo.bootstrap.Component,  {
         
         this.mainHead.remove();
         this.mainHead = table.createChild(header, this.mainBody, false);
+        
+        Roo.each(this.el.select('thead th.sortable', true).elements, function(e){
+            e.on('click', _this.sort, _this);
+        });
+        
+        
     },
     
     onHiddenChange : function(colModel, colIndex, hidden)