Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
It's possible with DataTables widget. You can set a particular column's colspan attribute while hiding other columns' footer like this:
DataTables::create(array(
...
"columns" => [
"dollar_sales" => [
"prefix" => "$",
"footer" => "sum"
],
"customerName" => [],
],
"attributes" => [
"tf" => function($colKey, $colMeta) {
if ($colKey === 'dollar_sales') return [
"colspan" => 2,
];
},
],
'cssStyle'=>array(
'tf' => function($colKey, $colMeta) {
if ($colKey === 'customerName') return 'display: none';
}
)
));
https://www.koolreport.com/docs/datagrid/datatables/#custom-attributes
https://www.koolreport.com/docs/datagrid/datatables/#set-custom-css-styles
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo