Hi, i am trying to use complex header for datagrid as instructed, but it isn't working. What is going wrong since its messing up the labels of other columns also?
\koolreport\datagrid\DataTables::create(array(
"themeBase"=>"bs4",
"name"=>'dummy',
'complexHeaders' => true,
'headerSeparator' => '-',
"cssClass"=>array(
"table"=>"table table-striped table-bordered ",
"td"=>function($row, $colName) {
if(in_array($colName,["wk3","wk2","wk1","month3","month2","month1"]))
return 'number-css';
},
),
"dataSource"=>$table_array,
"columnDefs" => array(
array("type"=> "html-num", "targets" => [4])
),
"columns"=>[
"Region"=>['label'=>'aaa-Region'],"wk3"=>['label'=>'aaa-'.$last_to_week_text]