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

Open Nathan Skelton opened this topic on 7 days ago - 1 comments

Nathan Skelton commented 7 days ago

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 5 days ago

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'
                            ]
                        ]
                    ]
                ]
            ],

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