Closed
Description
I have a column that contains Total times in Minutes (it has int type) that I want to convert it to "H:i" format,
I can do it using "displayAs" but only for editColumns, for example:
return $ExcelReport->of($title, $meta, $queryBuilder, $columns)
->editColumns(
['Total times'],
['displayAs' => function($result) {
return gmdate("H:i", $result->totalTimes);
}])
->groupBy('Customer Name')
->showTotal([
'Total times' => 'point'
])
->make()
->download('CustomerServiceReport.xlsx');
but I can't find any way to manipulate "showTotal" (Grand Total) output view
Is it possible to use "displayAs" for it? any idea?
Metadata
Metadata
Assignees
Labels
No labels