Export Windows won't close automatically
Export Windows won't close automatically
 dg_datatables            
            
                Posts: 56Questions: 11Answers: 1
dg_datatables            
            
                Posts: 56Questions: 11Answers: 1            
            I use the "export" example from https://editor.datatables.net/examples/extensions/exportButtons
It works great, but....
...is there an option that the appearing window will close automatically after selecting an option?
buttons: [
            { extend: 'create', editor: editor },
            { extend: 'edit',   editor: editor },
            { extend: 'remove', editor: editor },
            {
                extend: 'collection',
                text: 'Export',
                buttons: [
                    'copy',
                    'excel',
                    'csv',
                    'pdf',
                    'print'
                ]
            }
        ]
Thank's a lot!
This question has an accepted answers - jump to answer
This discussion has been closed.
            
Answers
What appearing window? Do you mean the dropdown list showing the export buttons?
If so, then use the
autoCloseoption for the collection as shown in this example. See alsocollectionfor full documentation.Allan
Yesssssssss. This was excatly what i needed, sometimes the solution is too easy ;-)
Thanks a lot.