KoolReport's Forum

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

CSS Style not working #951

Open Zaheer Ahmed opened this topic on on Jun 28, 2019 - 2 comments

Zaheer Ahmed commented on Jun 28, 2019

I am testing Kool Reports and have successfully generated my first report. But the table styling is not working. I am using Kool Reports with Laravel 5.8 and have installed Laravel Package from https://www.koolreport.com/packages/laravel

Here is the code from MyReport.view.php file :

    Table::create(array(
        "dataStore"=>$this->dataStore('purchases'),
            "columns"=>array(
                "refno"=>array(
                    "type"=>"number",
                    "label"=>"Ref. No."
                ),
                "date"=>array(
                    "type"=>"date",
                    "label"=>"Date"
                ),
                "supp_code"=>array(
                    "label"=>"Supplier"
                ),
                "total"=>array(
                    "type"=>"number",
                    "label"=>"Amount",
                    "prefix"=>"$",
                )
            ),
        "cssClass"=>array(
            "table"=>"table table-hover table-bordered"
        )
    ));

And here is screen shot of report :

David Winterburn commented on Jun 28, 2019

Hi,

Please try to add bootstrap to your report like this:

class MyReport extends koolreport\KoolReport
{
    use \koolreport\clients\Bootstrap;
    ...

Let us know if it works for you. Thanks!

Zaheer Ahmed commented on Jun 28, 2019

Thanks. Its working now.

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
None yet

None