I am trying to generate footer row for an HTML table. I have tried to set the style using table template
Code:
'tfoot_open' => '<tfoot class="dashboard-footer">'
but obviously, this class is not getting applied to <td> inside the <tfoot>.
I also tried setting the style as :
Code:
$table->setFooting('<td class="dashboard-footer">Total</td><td class = "dashboard-footer">'.$total.'</td>');
With this, the style is applied, but an extra <td> is getting generated before these 2 <td>, like this:
Code:
<tfoot class="dashboard-footer">
<tr>
<td></td>
<td class="dashboard-footer">Total</td>
<td class="dashboard-footer">4,11,793</td>
</tr>
</tfoot>
How to set style for <td> inside a footer row?