KoolReport's Forum

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

Table row template #1399

Open Peter Harari opened this topic on on Apr 20, 2020 - 1 comments

Peter Harari commented on Apr 20, 2020

Hi,

I need to create a Table report with a custom row template, like the below example:

Can't seem to figure out a way to customize the rows like that.

If there is an option where I can change the entire row content it will be enough for me, like changing everything between tr tags on the result.

Thank you.

KoolReport commented on Apr 21, 2020

The Table is able to be customized to each cell, you can use the formatValue to customize content inside cell. For styling, you can use the cssStyle or cssClass.

In the worst case that all above wont work ( I think it works), you can make your own table, it is pretty easy actually:

<table class="table">
    <?php foreach($this->dataStore("your-store-name") as $row): ?>
    <tr>
        <td><?php echo $row["your-column-name"] ?></td>
    </tr>
    <?php endforeach; ?>
</table>

Please let us know if you need further assistance.

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

None