KoolReport's Forum

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

Latest koolreport update of plugins in data tables #1445

Closed branden opened this topic on on May 18, 2020 - 5 comments

branden commented on May 18, 2020

Hi,

I there any example for adding the datatables "defaultPlugins" as indicated on the change log?

Thanks

David Winterburn commented on May 18, 2020

Hi Branden,

In the latest version by default DataTables is loaded with the following plugins: "AutoFill", "ColReorder", "RowGroup", "Select"

In addition to these, you could load the following plugins:

DataTables::create(array(
    ...
    "plugins" => array("Buttons", "FixedColumns", "FixedHeader", "KeyTable", "Responsive", "RowReorder", "Scroller", "SearchPanes"),
    ...
branden commented on May 18, 2020

Hi David, How can i enable buttons for example?

I've added the plugins to the datatable yet i do not see it ? am i missing anything?

DataTables::create(array(

        "id" => "byMostD",
        "name" => "byMostD",
        "dataSource" => $this->dataStore("byMostDialed"),
        "scope" => $this->params,
        "plugins" => array("Buttons",),
        "options" => array(
            "searching" => true,
            "paging" => true,
            "colReorder" => true,
            "order" => [],
            "ordering" => true,
            "pageLength" => 10,

            "fixedHeader"=>true,
            "responsive"=> true, 
            "autoWidth" => false
        ),
        
       
    ));
branden commented on May 19, 2020

Any feedback?

David Winterburn commented on May 20, 2020

Hi Branden,

Please use this option to show Buttons' buttons:

    "plugins" => array("Buttons",),
    "options" => array(
                    "dom" => 'Bfrtip',
                    "buttons" => [
                        "copy", "csv", "excel", "pdf"
                    ],

Let us know if you have any problem with this. Thanks!

branden commented on May 20, 2020

Excellent!! Thank You

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

DataGrid