-
Notifications
You must be signed in to change notification settings - Fork 140
Open
Description
I utilize datatable-view to show particular data in my django app and it works but I have a problem.
I'd like to show buttons such as csv and excel. So, after importing js and css files of buttons, I add these codes but they don't work.
The function of buttons do not exist in datatable or table variables.
`
var options = {
....
buttons: [
'copy', 'excel', 'pdf', 'csv'
],
sDom: 'Bfrtip'
}//end of defaultDataTableOptions
var datatable = datatableview.initialize($('.datatable'), options);
var table = $('#DataTables_Table_0').DataTable();
datatable.buttons().container().appendTo( $('#buttons', table.table().container() ) );
`
Metadata
Metadata
Assignees
Labels
No labels