$titles = explode(',', $titles);
}
foreach($cols as $i=>$col) {
- if (method_exists($data, 'toSimpleExcelRow')) {
-
- }
-
- $se_config['cols'][] = array(
+ $add = array(
'header'=> isset($titles[$i]) ? $titles[$i] : $col,
'dataIndex'=> $col,
'width'=> 100,
// 'fillBlank' => 'gray', // set
);
+ if (method_exists($data, 'toSimpleExcelCol')) {
+ $add = $data->toSimpleExcelColumn($col);
+ }
+
+ $se_config['cols'][] = $add;
+
}