KoolReport's Forum

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

Responsive Table #257

Open Victor Garcia opened this topic on on Apr 23, 2018 - 4 comments

Victor Garcia commented on Apr 23, 2018

Hi,

I was wondering if there is some way to configure the Tables to be responsive. In Table.tpl.php, line 17, I see this code:

<div class="koolphp-table" id="<?php echo $this->name; ?>">

So I supose there is no way to configure it.

I can do it changing the line to:

<div class="table-responsive" id="<?php echo $this->name; ?>">

But it would be nice to have the posibility to configure it. Maybe something like:

<div class="koolphp-table <?php echo ($responsive) ? 'table-responsive' : '' ?>" id="<?php echo $this->name; ?>">

Thanks in advance. Your product is great

KoolReport commented on Apr 24, 2018

That's great idea for improvement. We have just implemented your idea. So the configuration will be like this:

Table::create([
    "responsive"=>true,
    ...
])

is it good?

P/S: Do you need me to send you new Table widget?

Victor Garcia commented on Apr 24, 2018

Thank you for your quick response!

Yes, I would like to receive the new Table widget. Once again, Thank you very much

KoolReport commented on Apr 25, 2018

Thank you very much for your tips!

I have sent the Table widget to your email.

Anything please let us know.

Anindo Roy commented on Jul 21, 2021

How to make this table responsive, as not working as you suggested......

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
suggestion

None