KoolReport's Forum

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

Pivot Can't Responsive #534

Open Mazmur opened this topic on on Nov 25, 2018 - 5 comments

Mazmur commented on Nov 25, 2018

Dear KoolReport,

I'm already used KoolReport Version 3.1.0.

Table, Multiview is Responsive Packages, why Pivot can't ?

David Winterburn commented on Nov 26, 2018

Hi Mazmur,

PivotTable still uses Bootstrap's table class but its structure is more complex and quite different from a normal table with colspan, rowspan and collapsing/expanding rows, columns. Therefore we could not expect it to be as responsive as a normal table.

For small screen, I suggest you use PivotMatrix which supports scrolling and use template Bun like in this example to save horizontal space when expanding: https://www.koolreport.com/examples/reports/pivot/bun_template/

Gard Hauge commented on Feb 21, 2023

Hi David, can you point me to some examples of bun template usage? i have not written any bun template until now

Sebastian Morales commented on Feb 22, 2023

William, the Bun template is available in the Pivot package for both PivotTable and PivotMatrix. You can use it by adding one line like this:

PivotTable::create(array(
    ...
    'template' => 'PivotTable-Bun',
    ...
));

PivotMatrix::create(array(
    ...
    'template' => 'PivotMatrix-Bun',
    ...
));
Gard Hauge commented on Feb 22, 2023

i tried this but i see no difference. My table is still not adjusting blank space

Sebastian Morales commented on Feb 23, 2023

The Bun template only reduces PivotTable/PivotMatrix's general width. You might need to put the widget in your CSS grid system (for example: in Bootstrap use col-md-12, col-xs-12, etc) and set its width to 100%.

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

Pivot