For this feature, no option type is required,
In the Table View page add a column for your content. For example STDUENT NAME, in this case 200 is a with of 200px
array_push($td_titles, "200-STUDENT NAME");
Then we need to create an array with the following values, some of them are optional.
"col" is equired to specify the database column name where the content will be fetched from
The minimum structure is as follows:
$tdvalue = array( 'col'=>'name', //required );
The complete list with default values (some types have other specific parameters, please check each type in the Table View documentation for a full description) :
$tdvalue = array( 'type'=>'text', //optional, default text 'col'=>'name', //required 'nl2br' => false, //optional, default: false 'copy'=>false, //optional, adds a copy button to copy the content, default: false 'privilege'=> 1, //optional, 4 will show the field only to High and Admin privileges, default is 1 'class'=>'', //optional, class name selector default: none (empty) 'attribute'=>'', //optional, can be any attribute(s) with value(s) default: none (empty) 'title'=>null, //optional, default: null 'icon'=>'' //optional any text, html code or fontawesome icon, default: none (empty) );
Then the array is added to the $td_fields array.
$td_titles = array(); array_push($td_fields,$tdvalue);
or
array_push($td_fields , array( 'type'=>'live' , 'col'=>'name' ) );
Quick Format: instead of a $tdvalue array, use the column name as a string, you can specify the some types by adding it before the column name followed by " : " , for example, for a "live" field add "live:" before the column name
array_push($td_fields,"title_en"); //live array_push($td_fields,"live:title_en");