File export (copy, csv, excel, pdf, print)

Exporting data from a table can often be a key part of a complex application. The Buttons extension for DataTables provides three plug-ins that provide overlapping functionality for data export:
HTML5 export buttons - makes use of HTML5 APIs to create files client-side
Flash export buttons - uses Adobe Flash for legacy browsers
Print button
Both sets of buttons provide:
The Javascript shown below is used to initialise the table shown in this example:
$(document).ready(function() {
    $('#example').DataTable( {
        dom: 'Bfrtip',
        buttons: [
            'copy''csv''excel''pdf''print'
        ]
    } );
} );

0 Comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More