KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Footer Column alignment? #364

Open Jure Zakrajsek opened this topic on on Jul 11, 2018 - 2 comments

Jure Zakrajsek commented on Jul 11, 2018

Hi,

Any option to have the footer row <tfoot> columns aligned the same way as the columns in the datatable? the "cssClass" seem to work only on <td> that are part of <tbody>?

"cssClass"=>array(
	"table"=>"hover stripe row-border compact",
	"td"=>function($row,$colName)
		{
		if (in_array($colName, array("column1")))
		{
			return "text-left";
		}
		if (in_array($colName, array("column2","column3")))
		{
			return "text-right";
		}
	},
	"th"=>function($colName)
	{
		if (in_array($colName, array("column2","column3")))
		{
			return "text-right";
		}
	},

Thx for the advice Jure

KoolReport commented on Jul 11, 2018

You use "tf"

Jure Zakrajsek commented on Jul 11, 2018

Thx works as expected.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

DataGrid