Hi,
I am using formatValue function in Table and trying to pass column key as mentioned in the
https://www.koolreport.com/docs/koolphp/table/#table-settings-format-column-value but getting fatal error that formatvalue accepts 2 parameters only
<?php
Table::create(array(
...
"columns"=>array(
"amount"=>array(
'formatValue'=>function($value, $row, $cKey)
{
if ($cKey === 'amount')
return $row["currency"]." ".number_format($value);
else
return $value;
}
),
),
...
));
?> Please help as i need column key in the formatValue function. I am using koolreport v 4.7.1