KoolReport's Forum

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

Responsive Table #2222

Open Anindo Roy opened this topic on on Jul 21, 2021 - 1 comments

Anindo Roy commented on Jul 21, 2021

Please suggest how to make this table respeonsive......

Table::create(array(

    "dataStore"=>$this->dataStore('sales_by_customer'),
        "columns"=>array(
            "CUSTCODE"=>array(
                "label"=>"CODE"
            ),
            "NAME"=>array(
                "label"=>"NAME"
            ),
            "QTY"=>array(
                "type"=>"number",
                "label"=>"QTY",
                "cssStyle"=>"text-align:right",
            ),
            "GROSSVAL"=>array(
                "type"=>"number",
                "label"=>"GROSSVAL",
                "cssStyle"=>"text-align:right",
            ),
            "DISCOUNT"=>array(
                "type"=>"number",
                "label"=>"DISCOUNT",
                "cssStyle"=>"text-align:right",
            ),
            "NETVALUE"=>array(
                "type"=>"number",
                "label"=>"AMOUNT",
                "cssStyle"=>"text-align:right",
            ),
        ),
        "cssClass"=>array(
            "table"=>"table-bordered table-striped table-hover"
    ),
    "paging"=>array(
        "pageSize"=>10,
        "pageIndex"=>0,
    ),
));
KoolReport commented on Jul 21, 2021

You may try:

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

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