You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
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() ) );
`
The text was updated successfully, but these errors were encountered: