Datatable require.js - Buttons not showing up
Datatable require.js - Buttons not showing up
pamaxeed
Posts: 1Questions: 1Answers: 0
Hi all,
i have a problem with require.js and more specifically that the buttons are not showing up.
As follow my require.js configuration:
var jobDataTable = function(){
requirejs.config({
baseUrl: "./assets",
paths: {
jquery: "js/vendor/jquery-1.11.1.min.js",
bootstrap: 'js/bootstrap/js/bootstrap.min',
datatables: 'plugins/dataTables/js/jquery.dataTables.min',
buttons: " plugins/dataTables/extensions/buttons/dataTables.buttons.min",
html5: " plugins/dataTables/extensions/buttons/buttons.html5.min",
print: " plugins/dataTables/extensions/buttons/buttons.print.min",
colVis: "plugins/dataTables/extensions/buttons/buttons.colVis.min",
jsZip: "js/jszip"
},
shim: {
'bootstrap':{ deps:['jquery']}
}
});
require(['jquery', 'bootstrap', 'datatables'], function($){
var dataset = app.getJobsByUser();
var jobTable = $('#axCsJobsTable').DataTable({
aaData: dataset,
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
],
Can somebody assist?
I am new in the usage of Datatable.
Thanks,
Patric
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan