I am using a DataTable widget on my report. when I run it I see on each column header two arrows to sort ASC/DSC. I want to disable it.
this is the DataTable code:
DataTables::create(array(
"name" => "myTable",
"language" => "he", //use 'DataTables.de.json'
"dataSource"=>$this->dataStore("st"),
"emptyValue" => "", // use an empty string as filler for empty values
"options"=>array(
"colReorder"=>false,
"order"=>[],
'columnDefs' => array(
array(
'visible' => false,
//'targets' => [$this->monthDays+6], //hide the first column
)
),
),
'complexHeaders' => true,
'headerSeparator' => ' - ',
"groupCellsInColumns" => [0, 1], // group similar cells in columns
'cssClass'=>array(
'table'=>'table table-bordered w-100',
'tr'=>'cssItem',
'td'=>function($row,$colName)
{
return in_array($colName, array('teacher_id','id_number', 'reason')) ? 'border-dark text-right' : 'border-dark text-center';
},
'th'=>function($colName)
{
return in_array($colName, array('teacher_id','id_number','reason')) ? 'border-dark text-right' : 'border-dark text-center';
},
),
));