Export Windows won't close automatically

Export Windows won't close automatically

dg_datatablesdg_datatables Posts: 53Questions: 10Answers: 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

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    What appearing window? Do you mean the dropdown list showing the export buttons?

    If so, then use the autoClose option for the collection as shown in this example. See also collection for full documentation.

    Allan

  • dg_datatablesdg_datatables Posts: 53Questions: 10Answers: 1

    Yesssssssss. This was excatly what i needed, sometimes the solution is too easy ;-)

    Thanks a lot.

This discussion has been closed.