Calendar LIVE INPUT
All live and submit inputs needs the option type L or $options['live'] = true
$tdvalue = [ 'type'=>'live', 'inputType' => 'calendar', //could be text, number, textarea or calendar 'col'=>'reg_date', //db column name 'privilege'=> 4, //optional, 4 will show the field only to High and Admin privileges, default is 1 'class'=>'', //optional, class name selector default: none (empty) 'style'=>'style="color:red"', //optional, default: none (empty) 'attributes'=>'' //optional, can be any attribute(s) with value(s) default: none (empty) ];
Finally the array is added to the $td_fields array.
array_push($td_fields,$tdvalue);