KoolReport's Forum

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

How to specify file names for datagrid/datatables and ApexCharts exports? #3358

Closed Nathan Skelton opened this topic on on Oct 15 - 2 comments

Nathan Skelton commented on Oct 15

Is there a way to specify the filenames that are generated when a user exports data from a datagrid/datatable or when a user downloads a file from the ApexCharts download menu?

Bright commented on Oct 17

To specify the file name that is generated when a user downloads a file from the ApexCharts download menu, you do the following:

    "options" => [
                'chart' => [
                    'toolbar' => [
                        'export' => [
                            'csv' => [
                                'filename' => 'custom_filename'
                            ],
                            'svg' => [
                                'filename' => 'custom_filename'
                            ],
                            'png' => [
                                'filename' => 'custom_filename'
                            ]
                        ]
                    ]
                ]
            ],
Nathan Skelton commented on Nov 4

Thank you! That worked great!

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
solved

None