Table Headers

Each column is assigned with a header title.

To assign titles to each column header use the $td_titles array and simply add a Title, it is important to note that the same number table headers must be exactly the same as the number of table columns used with $td_fields

 

$td_titles = [
   'NAME',
   'LAST NAME',
   'DOB',
   'EMAIL',
   'TELEPHONE'
];

 

We can add more properties like Title, Sort and Width by passing an array on each $td_titles value

 

$th = [
   'name'=> 'ES',
   'title'=> 'Email Sent', //hover title attribute (optional)
   'width'=> 20, //(optional)
   'sort'=>'EMAIL_STATUS' //(optional)
];

array_push($td_titles,$th);

 

Quick Version:
width - title : sort : sort column

array_push($td_titles,'80-REGISTRATION DATE:sort:reg_date'); 

/*
width = 80px
Name / Ttitle = REGISTRATION DATE
SORT BY: reg_date
*/