Closed fdalex closed 6 years ago
Just replicate the same that you have for the head, on the render method change this.:
$tableFooter = $this->tag('tfoot', $tableHeaders, $theadOptions);
then add your JS and you are done.
Working perfectly ! Thanks !
$trFooter = $this->Html->tableHeaders($columns);
echo $this->DataTable->render('requester_view', ['id' => 'datatable', 'tfoot' => $trFooter], $jsOptions);
Hi ! How can I display the footer with the helper $this->DataTable->render(...) ? I've seen in the plugin's code 'tfoot' and 'footOptions' but I dont know how to use this. I always get as result :
My final goal is to display total of each columns in the footer with this code (working on a simple datatable project) :
Thanks foy your help ;)