Hi, is there an easy way of sum columns to show total at the bottom from a Datatable ny changing the class only (not the view?) See example that I have which aligned a string to the right. I am trying to get a total for columns amount, fee and balance. thank you very much
$this->src('mysql')
->query($query)
->params(array(
":processedStatus"=>$this->params["processed_status"],
))
->pipe(new Map(array(
'{meta}' => function($metaData) {
$metaData['columns']['CBNumber'] = array(
'type' => 'string',
'cssStyle' => 'text-align:right',
);
return $metaData;
},
)))
->pipe($this->dataStore("queryTours"));