Button export csv

Button export csv

gozillagozilla Posts: 6Questions: 0Answers: 1
edited December 2015 in Free community support

Hallo,
how can you define the path through the button and default file name and download it automatically
thank you

var optionButton = [
                      {
                        extend: 'csv',
                            text: "<i class='fa fa-file-text-o'></i> Export as CSV'",
                            fieldSeparator: ';',
                                fieldBoundary: '',
                            exportOptions: {
                                modifier: {
                                        search: 'none',
                                    }
                        }
                } 
            ]

Replies

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    There is no option for that, sorry. The browser's default will always be used. I'm not aware of any option to specify a path using the HTML5 APIs. I also don't see how you would be able to guarantee that the path given would actually exist.

    Allan

This discussion has been closed.