Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi, for me the following works
For example if i need to set style for the name
column I do
Table::create(array(
...
"cssClass" => array(
"td" => function ($row, $columnName) {
return ($columnName == "name") ? "cell-class-name" : "cell-class";
},
...
)))
where css style
.cell-class-name {
text-align: right;
}
PivotTable (version >= 6.0.0) has also the "cssClass"
property so the logic is the same
you can do something like this
'cssClass' => array(
'rowHeader' => function($value, $cellInfo) {
return "cell-class-name";
}
),
to get the following
More info here
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo