Pman/Roo.php
authorAlan Knowles <alan@roojs.com>
Tue, 21 May 2019 08:48:13 +0000 (16:48 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 21 May 2019 08:48:13 +0000 (16:48 +0800)
Pman/Roo.php

index f524870..05f3c99 100644 (file)
@@ -528,6 +528,26 @@ class Pman_Roo extends Pman
                     $titles = explode(',', $titles);
                 }
 
+                foreach($cols as $i=>$col) {
+                    $add = array(
+                        'header'=> isset($titles[$i]) ? $titles[$i] : $col,
+                        'dataIndex'=> $col,
+                        'width'=>  100,
+                       //     'renderer' => array($this, 'getThumb'),
+                         //   'color' => 'yellow', // set color for the cell which is a header element
+                          // 'fillBlank' => 'gray', // set 
+                    );
+                    //die('here');
+                    if (method_exists($this->do, 'toSimpleExcelColumn')) {
+                        $add = $this->do->toSimpleExcelColumn($col);
+                    } 
+                    
+                    $se_config['cols'][] = $add;
+                    
+   
+                    
+                }
+                
                 foreach($cols as $i=>$col) {
                     $se_config['cols'][] = array(
                         'header'=> isset($titles[$i]) ? $titles[$i] : $col,