KoolReport's Forum

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

Table Title missing on CustomDrillDown #561

Open Alex Chartier opened this topic on on Dec 16, 2018 - 2 comments

Alex Chartier commented on Dec 16, 2018

It seems when you display a table in a Custom DrillDown the title is not displaying. Here is the Table::Create:

	Table::create(
		"dataSource"=>$this->dataStore("transactions"),
		"title"=>"Transaction Report for ".date("D M d, Y", $this->targetDay),
		"showFooter"=>"bottom",
		"columns"=>[
			'name' => ['label'=>"Name"],
			'amount' => ["label"=>"Amount Collected", "type"=>"number", "prefix"=>"$",
					"footer"=>"sum", "footerText"=>"<b>Total Collected:  @value</b>", "cssStyle"=>$cssStyle],
		],
        "cssClass"=>["table"=>"table table-bordered table-striped"],
	);

and this is what I am seeing:

KoolReport commented on Dec 17, 2018

Actually there is no "title" property for Table, may be you can put

<b>Transaction Report for <?php echo date("D M d, Y", $this->targetDay);?></b>

above the Table.

Alex Chartier commented on Dec 17, 2018

Yes, that works. I didn't think about placing the title in the view as I expected the Table itself would put it there like chartjs does. Perhaps this would be a good enhancement.

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
solved

DrillDown